【问题标题】:Rsymphony OSX Installation failedRsymphony OSX 安装失败
【发布时间】:2015-10-22 16:05:59
【问题描述】:

我正在尝试在 Mac OSX 上的 R 上安装 Rsymphony 包。我收到以下错误:

install.packages("Rsymphony")
Package which is only available in source form, and may need
  compilation of C/C++/Fortran: 'Rsymphony'
Do you want to attempt to install these from sources?
y/n: y
installing the source package 'Rsymphony'

trying URL 'https://mirrors.ebi.ac.uk/CRAN/src/contrib/Rsymphony_0.1-21.tar.gz'
Content type 'application/x-gzip' length 7429 bytes
==================================================
downloaded 7429 bytes

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* installing *source* package 'Rsymphony' ...
** package 'Rsymphony' successfully unpacked and MD5 sums checked
Cannot find SYMPHONY libraries and headers.
See <https://projects.coin-or.org/SYMPHONY>.
ERROR: configuration failed for package 'Rsymphony'
* removing '/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsymphony'

The downloaded source packages are in
    '/private/var/folders/0n/03x0y52j51q5fsfm3_g8bc000000gn/T/RtmpL7916v/downloaded_packages'
Warning message:
In install.packages("Rsymphony") :
  installation of package 'Rsymphony' had non-zero exit status

安装“fPortfolio”包需要此包。关于可能的解决方案的任何提示?

【问题讨论】:

  • 写得很清楚Cannot find SYMPHONY libraries and headers.
  • 是的,如何获得?
  • 再次阅读错误信息。写得很清楚。提示:搜索以See &lt;https开头的行。

标签: r macos failed-installation installation-package


【解决方案1】:

经过反复尝试,我终于找到了如何在 OSX 中安装 Rsymphony

在终端中为 brew 安装 CoinOR 存储库

~$ brew tap coin-or-tools/coinor

在终端中通过 brew 安装 symphony

~$ brew install symphony

在 R 命令行下安装 Rsymphony

> install.packages("Rsymphony")

希望对你有所帮助^^

【讨论】:

  • 我会想象最后一个要在 R 命令行中完成,所以它应该 = 可能看起来像 &gt;install.packages("Rsymphony") 以区别于终端控制台命令。
  • @smalltown 我已经使用自制软件安装了 symphony,它从命令行运行,但我仍然收到上述错误。有什么建议吗?
猜你喜欢
  • 2015-11-14
  • 1970-01-01
  • 2015-02-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-05-23
  • 2016-08-20
相关资源
最近更新 更多