0

我正在尝试在 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”软件包需要此软件包。关于可能的解决方案的任何提示?

4

1 回答 1

0

经过尝试和错误,我终于找到了如何在 OSX 中安装 Rsymphony

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

~$ brew tap coin-or-tools/coinor

在终端中通过 brew 安装交响乐

~$ brew install symphony

在 R 命令行下安装 Rsymphony

> install.packages("Rsymphony")

希望这会有所帮助^^

于 2016-05-02T17:04:07.743 回答