安装 RCPLEX 时出现问题

安装 RCPLEX 时出现问题

当我尝试在计算机上安装 RCPLEX 时,出现错误,我不知道该怎么做。互联网上没有任何关于我的问题的信息。

R Marcel$ R CMD INSTALL --configure-args="PKG_CFLAGS='-m64 -fPIC' PKG_CPPFLAGS=-I/Users/Marcel/Applications/CPLEX_Studio129/cplex/include/ilcplex PKG_LIBS='-L/Users/Marcel/Applications/CPLEX_Studio129/cplex/lib/x86-64_osx/static_pic -lcplex -lm -m64 -lpthread -framework CoreFoundation -framework IOKit'" Rcplex
* installing to library ‘/Users/Marcel/Library/R/3.5/library’
* installing *source* package ‘Rcplex’ ...
** Paket ‘Rcplex’ erfolgreich entpackt und MD5 Summen überprüft
checking for gcc... clang
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ANSI C... none needed
checking how to run the C preprocessor... clang -E
checking for egrep... grep -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
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 ‘/Users/Marcel/Library/R/3.5/library/Rcplex’

我正在使用 Mac OS Mojave,并且按照此说明的每个步骤进行操作,一切都很顺利,直到第 2 步: http://jrzubizarreta.com/INSTALL

R、IBM CPLEX、R studio、我的电脑……一切都按照要求是 64 位的。

路径和文件“cplex.h”就在那里。我检查过了。遗憾的是,我没有使用 makefile 或编译器的经验。如果有人能帮助我,我将不胜感激!

相关内容