Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

this was working on 10.04, but now i can't get it to work again....

cplex seem to be properly installed (though if anyone can suggest a way to insure this is indeed the case, i'd be thankful)

any idea ?

#COPT  = -m64 -fPIC 
#CLNFLAGS  = -L$(CPLEXLIBDIR) -lcplex -lm -pthread

    --configure-args="--with-cplex-include=$CPLEXLIBDIR \
    --with-cplex-cflags=-fPIC \
    --with-cplex-lib='-L$CPLEXLIBDIR/static_pic \
    -lcplex -lm -lpthread'" ~/Documents/Rcplex_0.3-0.tar.gz

* 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 cd /root/ILOG/CPLEX_Studio_AcademicResearch122/cplex/include/ilcplex
cplex.h  ilm.h  ilocarray.h  ilocplex.h  ilocplexi.h  iloextrmgr.h  ilogoals.h  solution.xsd  solution.xsl
share|improve this question
up vote 0 down vote accepted

ok, for the records. the guide says to substitute CPLEXDIR by whatever is found after CFLAGS in the Make files which in our case is


not quiet right. It used to be so, but now it is:


fix that in the code above and it flies.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.