Shima Shahbazi
2012-Jul-27 08:38 UTC
[R] an optimization problem and installation of the package Rcplex
Hello, I am an R user who wants to solve an optimization problem. To do so, I tried to install the package Rcplex on my computer (Windows7-64), so I did the same as installation Instructions<http://www.geeklog.net/docs/english/install.html> and edited the file "Makevars.win" by adding the path "C:/Program Files/IBM/ILOG/CPLEX_Studio_Preview124/cplex/include" (where the trial version of cplex has been installed on my computer) to the lines "PKG_CPPFLAGS=-I<CPLEX_DIR>/include" and "PKG_LIBS=-L<CPLEX_DIR>/lib/x86_windows_vs2008/stat_mda -lcplex111 -lm". Then, I just tried to install the package as usual by R with the command "install.packages" but there is an error as following " Installing package(s) into 'C:/Users/shima/Documents/R/win-library/2.14' (as 'lib' is unspecified) * installing *source* package 'Rcplex' ... ERROR: configuration failed for package 'Rcplex' * removing 'C:/Users/shima/Documents/R/win-library/2.14/Rcplex' Warning messages: 1: running command 'C:/PROGRA~1/R/R-214~1.0/bin/x64/R CMD INSTALL -l "C:/Users/shima/Documents/R/win-library/2.14" "c:/temp/Rcplex"' had status 1 2: In install.packages("c:/temp/Rcplex", type = "source", repos = NULL) : installation of package 'c:/temp/Rcplex' had non-zero exit status " and it does not work I wonder what the problem is!? Could you please guild me how I can solve this problem? Thank you in advance. Regards, Shima. [[alternative HTML version deleted]]
Prof Brian Ripley
2012-Jul-27 11:02 UTC
[R] an optimization problem and installation of the package Rcplex
You really need to discuss this with the package maintainer (as the posting guide asked). But there are several 'optimization' packages on CRAN which do have Windows' binary versions that would therefore be easier to use. On 27/07/2012 09:38, Shima Shahbazi wrote:> Hello, > > > > I am an R user who wants to solve an optimization problem. To do so, I tried to install the package Rcplex on my computer (Windows7-64), so I did the same as installation Instructions<http://www.geeklog.net/docs/english/install.html> and edited the file "Makevars.win" by adding the path "C:/Program Files/IBM/ILOG/CPLEX_Studio_Preview124/cplex/include" (where the trial version of cplex has been installed on my computer) to the lines "PKG_CPPFLAGS=-I<CPLEX_DIR>/include" and > "PKG_LIBS=-L<CPLEX_DIR>/lib/x86_windows_vs2008/stat_mda -lcplex111 -lm". Then, I just tried to install the package as usual by R with the command "install.packages" but there is an error as following > > > " Installing package(s) into 'C:/Users/shima/Documents/R/win-library/2.14' > (as 'lib' is unspecified) > * installing *source* package 'Rcplex' ... > ERROR: configuration failed for package 'Rcplex' > * removing 'C:/Users/shima/Documents/R/win-library/2.14/Rcplex' > Warning messages: > 1: running command 'C:/PROGRA~1/R/R-214~1.0/bin/x64/R CMD INSTALL -l "C:/Users/shima/Documents/R/win-library/2.14" "c:/temp/Rcplex"' had status 1 > 2: In install.packages("c:/temp/Rcplex", type = "source", repos = NULL) : > installation of package 'c:/temp/Rcplex' had non-zero exit status " > > and it does not work I wonder what the problem is!? Could you please guild me how I can solve this problem? Thank you in advance. > > Regards, > Shima. > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595