【问题标题】:What should the configure.win file contain in the cplex API package?cplex API 包中的 configure.win 文件应该包含什么?
【发布时间】:2021-05-17 19:13:38
【问题描述】:

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

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

【问题讨论】:

    标签: windows cplex rtools


    【解决方案1】:

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

    【讨论】:

    • 您好,感谢您的建议。我已经被证明在 R 中构建包已经解决了这个问题。对于寻求快速解决相同问题的其他人,请使用 Rstudio 中构建菜单中的配置构建工具。然后您可以从下拉列表中选择“包”并输入我在原始问题中链接的代码中的参数。我认为该解决方案与我必须将命令行设置为的项目或工作目录有关,但我对命令行一点也不熟悉。
    猜你喜欢
    • 2011-08-18
    • 2016-11-26
    • 2012-05-26
    • 2011-05-06
    • 2010-12-29
    • 2019-11-09
    • 1970-01-01
    • 2018-12-29
    • 1970-01-01
    相关资源
    最近更新 更多