0

我正在尝试在 Windows 中安装 cplex API。我对这个程序不是很熟悉,所以我一直在使用 R bloggers 的这个链接

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文件似乎有错误,但是下载后我根本没有编辑它。当我打开它是一个空白文件时,我不确定这是否是我应该的。

如果有人在这里提供任何见解,将不胜感激。

4

1 回答 1

0

查看此错误消息“'sh' not found”,我怀疑您应该安装 cygwin,以便安装可以使用 BourneShell。如果失败,我想你可以联系包的作者 https://www.th-koeln.de/personen/gabriel.gelius-dietrich/。干杯,

于 2021-02-15T09:09:56.630 回答