我正在尝试在windows中安装cplex API。我对这个程序不是很熟悉,所以我一直在使用这个来自R博客的链接
https://www.r-bloggers.com/2017/01/using-cplex-in-r-installing-cplexapi-in-windows-10/
使用windows命令提示符后,我得到以下响应:
R CMD build --no-build-vignettes --no-manual --md5 C:\Users\Rharris\Desktop\cplexAPI
* checking for file 'C:\Users\RHARRIS\Desktop\cplexAPI/DESCRIPTION' ... OK
* preparing 'cplexAPI':
* checking DESCRIPTION meta-information ... OK
* cleaning src
Warning in cleanup_pkg(pkgdir, Log) :
unable to run 'make clean' in 'src'
* checking vignette meta-information ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* adding MD5 file
* building 'cplexAPI_1.4.0.tar.gz'
Warning: file 'cplexAPI/cleanup' did not have execute permissions: corrected
Warning: file 'cplexAPI/configure' did not have execute permissions: corrected
C:\Users\RHARRIS>R CMD INSTALL --build --no-multiarch .\cplexAPI_1.4.0.tar.gz
* installing to library 'C:/Users/RHARRIS/Documents/R/win-library/4.0'
* installing *source* package 'cplexAPI' ...
** package 'cplexAPI' successfully unpacked and MD5 sums checked
** using staged installation
Warning in system("sh ./configure.win") : 'sh' not found
ERROR: configuration failed for package 'cplexAPI'
* removing 'C:/Users/RHARRIS/Documents/R/win-library/4.0/cplexAPI'似乎我在configure.win文件中有一个错误,但是我在下载后根本没有编辑它。当我打开它时,它是一个空白文件,我不确定这是否是我应该成为的人。
如果有人能在这里提供任何见解,我们将不胜感激。
发布于 2021-02-15 17:09:57
看到这个错误消息"'sh‘找不到“,我怀疑你应该安装cygwin,这样安装就可以使用BourneShell了。如果这失败了,我想你可以联系https://www.th-koeln.de/personen/gabriel.gelius-dietrich/包的作者。干杯,
https://stackoverflow.com/questions/66198904
复制相似问题