在macOS上使用RStudio安装RSymphony [英] Installing RSymphony using RStudio on macOS

查看:126
本文介绍了在macOS上使用RStudio安装RSymphony的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的MAC中使用RStudio安装软件包RSymphony(以便以后能够安装软件包fPortfolio).用"Y"接受从源代码安装软件包后,我收到消息:

I am trying to install the package RSymphony using RStudio in my MAC (to afterwards be able to install the package fPortfolio). After accepting with "Y" to install the package from the source, I get the message:

> 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.3/Resources/library/Rsymphony'

> Warning in install.packages:
> installation of package 'Rsymphony' had non-zero exit status

我尝试了此博客中其他答案的所有建议(例如,使用Homebrew,安装Xcode等的 ):

I tried all the suggestions from other answers in this blog (e.g. using Homebrew, installing Xcode, etc.):

> brew tap coin-or-tools/coinor

> brew install symphony

> brew install pkg-config

但是我仍然收到相同的ERROR消息.我成功的一种方法是在Windows环境中(通过Parallels)安装相同的软件包.

But I still get the same ERROR message. The one way I was successful was installing the same package in a Windows environment (via Parallels).

谢谢.

推荐答案

以上建议对我的修改效果很好:

The above suggestion worked great for me with the edits of:

简单安装wget

brew install wget

wget https://cran.revolutionanalytics.com/src/contrib/Rsymphony_0.1-28.tar.gz

tar -xzvf Rsymphony_0.1-28.tar.gz

tar -xzvf Rsymphony_0.1-28.tar.gz

然后我在src文件夹中找到了/R_symphony.cc.谢谢!!!

And I found the /R_symphony.cc in the src folder. Thanks!!!

这篇关于在macOS上使用RStudio安装RSymphony的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆