[R] Problem installing Rcplex in ubuntu

kv kaveh.vakili at ulb.ac.be
Mon May 16 22:23:16 CEST 2011


Dear List,

I'm trying to install Rcplex on a ubuntu 64 bit machine, and have not been
successful.

After installing  cplex latest version from ibm's website (everything as
standard, except 
 had it installed unto ~/ (the home directory) rather than the default
directory).

i type (from inside the directory where  Rcplex_0.3-0.tar.gz is):

>CPLEX_INCLUDE_PATH=~/ILOG/CPLEX/cplex
>CPLEX_INCLUDE_PATH=~/ILOG/CPLEX/cplex/examples/x86-64_sles10_4.1/static_pic

>R CMD INSTALL \
    --configure-args="--with-cplex-include=$CPLEX_INCLUDE_PATH \
    --with-cplex-cflags=-fPIC \
    --with-cplex-lib='-L$CPLEX_LIB_PATH/static_pic \
    -lcplex -lm -lpthread'" Rcplex_0.3-0.tar.gz

and i get; 


* installing to library ‘~/R/x86_64-pc-linux-gnu-library/2.12’
* installing *source* package ‘Rcplex’ ...
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... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... no
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... no
checking ilcplex/cplex.h presence... no
checking for ilcplex/cplex.h... no
configure: error: CPLEX header cplex.h not found
ERROR: configuration failed for package ‘Rcplex’
* removing ‘~/R/x86_64-pc-linux-gnu-library/2.12/Rcplex’

however, when i check 

>cd ~/ILOG/CPLEX/cplex/include/ilcplex
>ls
>cplex.h  ilm.h  ilocarray.h  ilocplex.h  ilocplexi.h  iloextrmgr.h 
ilogoals.h  solution.xsd  solution.xsl

i.e. cplex seems to be here. 

i also attach to this mail the MAKE file 
(found in ~/ILOG/CPLEX/cplex/examples/x86-64_sles10_4.1/static_pic)

Also i don't have much experience in all this bash/shell business and 
installing software in linux. 

Can anyone, by any chance, help me ? 

Thanks in advance,

--
View this message in context: http://r.789695.n4.nabble.com/Problem-installing-Rcplex-in-ubuntu-tp3527332p3527332.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list