Dear all, i'm trying to install Rcplex on ubuntu and i'm not getting very far. First i installed cplex with the academic licence yesterday, put the ILOG_LICENSE_FILE int its default directory (/usr/ilog/ilm/access.ilm) successfully compilled and executed all the examples in the
directory. So i assume cplex is installed correctly (should i?). then i ran forward to the installing instruction on rcplex's website http://cran.r-project.org/web/packages/Rcplex/INSTALL tried them:
and got an error:
i'm very puzzled because ilcplex/cplex.h exists. |
Without any knowledge of R+CPLEX, it seems to me : --with-cplex-include=${CPLEXLIBDIR} is wrong i.e it should not be the lib directory but the include directory i.e $(CPLEXINCDIR). Anyways I could be wrong. Indeed, i simply copy-pasted the (official) R/CRAN website with the instructions. Using your suggestion solved everything. I wish i could up-vote but i don't have enough reps. You basically ended 3 hours of frustrations.
(17 May '11, 07:03)
vak
|
Yes, it should clearly be $(CPLEXINCDIR). He also needs to define CPLEXINCDIR correctly, which is missing. 1
Indeed, i simply copy-pasted the (official) R/CRAN website with the instructions. Using your suggestion solved everything. I wish i could up-vote but i don't have enough reps. You basically ended 3 hours of frustrations.
(17 May '11, 07:03)
vak
You welcome. Any time a make (or automake) error message says that it cannot find some file, its usually a good starting point to check to make sure the include path contains everything it is supposed to. In your case, the CFLAGS define with the usual -I flag is commented out. Instead the include path is set by using the --with-cplex-include argument, accomplishing the same thing.
(17 May '11, 08:23)
BjarniMax
|
RCplex is an add-on package to the base install of R. I believe you still need to have R installed on the machine in addtion to the INSTALL requirements. According the the RCplex website it needs to be R version > 2.6.0. This is indeed the case. But in this instance is that the instructions on the package's website seem to have been outdated (pending confirmation from the maintainer).
(17 May '11, 13:33)
vak
Even still it is far easier to add a package via the base install of R than to add it via shell command line using make tools. By the way having R installed on your machine can be rather handy.
(17 May '11, 17:05)
larrydag 1 ♦
|