我试图在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
此软件包是安装&#34; fPortfolio&#34;包。关于可能解决方案的任何提示?
答案 0 :(得分:0)
尝试和错误后,我终于找到了如何在OSX中安装Rsymphony
在终端
中安装Brew的CoinOR存储库~$ brew tap coin-or-tools/coinor
通过终端
中的brew安装symphony~$ brew install symphony
在R命令行下安装Rsymphony
> install.packages("Rsymphony")
希望这有助于^^