How to install Rcplex on Mac

三世轮回 提交于 2020-01-06 07:17:09

问题


I am trying to link R with the IBM Cplex studio but unable to do so.

First I installed the Cplex studio on my desktop. Next I directly tried installing the 'Rcplex package' in R but got a configuration error. "configure: error: CPLEX include directory ./include does not exist:" Next I researched a bit to find the solution and found out that the Rcplex package requires the CPLEX include directory. I then tried to add arguments in the installation through Terminal but no success.

Source : https://cran.cnr.berkeley.edu/web/packages/Rcplex/INSTALL

R CMD INSTALL --configure-args="PKG_CFLAGS='-m64 -fPIC' PKG_CPPFLAGS=-I/Applications/CPLEX_Studio_Community129/cplex/include PKG_LIBS='-L/Applications/CPLEX_Studio_Community129/cplex/lib/x86-64_osx/static_pic -lcplex -m64 -lm -lpthread -framework CoreFoundation -framework IOKit'" Rcplex_0.3-0.tar

Error message received : "Warning: invalid package ‘Rcplex_0.3-0.tar’ Error: ERROR: no packages specified"

来源:https://stackoverflow.com/questions/56708929/how-to-install-rcplex-on-mac

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!