问题
I am trying to install Rcplex on MAC but I am running into very strange error. I ran the following command on terminal:
R CMD INSTALL --configure-args=" \ --with-cplex-lib='/Applications/CPLEX_Studio_Community129/cplex/lib/x86-64_osx/static_pic/' \ --with-cplex-include='/Applications/CPLEX_Studio_Community129/cplex/include/' \ --with-cplex-link='-lcplex -m64 -lm -pthread' \ --with-cplex-check='/Applications/CPLEX_Studio_Community129/cplex/examples/src/c' \ --with-cplex-cflags='-m64 -fPIC'" \ Rcplex
and got the following error: checking for library containing CPXversion... no configure: error: Could not link CPLEX library using /Applications/CPLEX_Studio_Community129/cplex/lib/x86-64_osx/static_pic/ ERROR: configuration failed for package ‘Rcplex’
来源:https://stackoverflow.com/questions/56710379/errors-while-installing-rcplex-in-r-on-mac