-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hello,
I'm trying to install Rcplex on my Ubuntu 22.04 (gcc version: Ubuntu 11.2.0-19ubuntu1 11.2.0).
Here is the installation output:
$ sudo R CMD INSTALL --configure-args="PKG_CFLAGS=-fPIC PKG_CPPFLAGS=-I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include PKG_LIBS='-L/opt/ibm/ILOG/CPLEX_Studio1261/cplex/lib/
x86-64_linux/static_pic -lcplex -lm -lpthread'" Rcplex_0.3-5.tar.gz
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘Rcplex’ ...
** package ‘Rcplex’ successfully unpacked and MD5 sums checked
** using staged installation
'config' variable 'CPP' is defunct
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking ilcplex/cplex.h usability... yes
checking ilcplex/cplex.h presence... yes
checking for ilcplex/cplex.h... yes
checking for library containing CPXversion... none required
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include -fPIC -fpic -g -O2 -ffile-prefix-map=/build/r-base-4A2Reg/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c Rcplex.c -o Rcplex.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include -fPIC -fpic -g -O2 -ffile-prefix-map=/build/r-base-4A2Reg/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c Rcplex_QCP.c -o Rcplex_QCP.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include -fPIC -fpic -g -O2 -ffile-prefix-map=/build/r-base-4A2Reg/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c Rcplex_params.c -o Rcplex_params.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include -fPIC -fpic -g -O2 -ffile-prefix-map=/build/r-base-4A2Reg/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c Rcplex_utils.c -o Rcplex_utils.o
gcc -I"/usr/share/R/include" -DNDEBUG -I/opt/ibm/ILOG/CPLEX_Studio1261/cplex/include -fPIC -fpic -g -O2 -ffile-prefix-map=/build/r-base-4A2Reg/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c init.c -o init.o
gcc -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -flto=auto -Wl,-z,relro -o Rcplex.so Rcplex.o Rcplex_QCP.o Rcplex_params.o Rcplex_utils.o init.o -L/opt/ibm/ILOG/CPLEX_Studio1261/cplex/lib/x86-64_linux/static_pic -lcplex -lm -lpthread -L/usr/lib/R/lib -lR
/usr/bin/ld: Rcplex_QCP.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex_QCP.c:7: multiple definition of "max_numcalls"; Rcplex.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex.c:7: first defined here
/usr/bin/ld: Rcplex_QCP.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex_QCP.c:4: multiple definition of "env"; Rcplex.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex.c:4: first defined here
/usr/bin/ld: Rcplex_QCP.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex_QCP.c:5: multiple definition of "lp"; Rcplex.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex.c:5: first defined here
/usr/bin/ld: Rcplex_QCP.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex_QCP.c:8: multiple definition of "forceCplxClose"; Rcplex.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex.c:8: first defined here
/usr/bin/ld: Rcplex_QCP.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex_QCP.c:6: multiple definition of "numcalls"; Rcplex.o:/tmp/RtmpOZ8WMJ/R.INSTALL10f4a7b9527da/Rcplex/src/Rcplex.c:6: first defined here
collect2: error: ld returned 1 exit status
make: *** [/usr/share/R/share/make/shlib.mk:10: Rcplex.so] Erro 1
ERROR: compilation failed for package ‘Rcplex’
* removing ‘/usr/local/lib/R/site-library/Rcplex’
Could anyone help me?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels