OSX安装Rsymphony-链接标题和库 [英] OSX Installing Rsymphony - linking headers and libs

查看:95
本文介绍了OSX安装Rsymphony-链接标题和库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

symphony已在终端中正确安装并经过测试. R尝试从源代码安装Rsymphony时抱怨抱怨缺少头文件和库.任何指针,高度赞赏.谢谢!

symphony is correctly installed and tested in terminal. R complains about missing header and libraries when trying to install Rsymphony from source. Any pointers are HIGHLY appreciated. thank you!

  • 交响乐安装目录:/Users/timo/Applications/symphony/

  • symphony installation directory: /Users/timo/Applications/symphony/

R安装命令:

install.packages("Rsymphony", configure.args="--with-SYMPHONY-include=/Users/timo/Applications/symphony/include/ --with-SYMPHONY-lib=/Users/timo/Applications/symphony/lib",type="source")

得出:

* 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’* restoring previous‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsymphony’

* 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’* restoring previous‘/Library/Frameworks/R.framework/Versions/3.2/Resources/library/Rsymphony’

推荐答案

解决方案:

  • 我在此链接中找到了解决方案(...我安装了RSymphony,但其中涉及一些黑客行为...) 在macOS上使用RStudio安装RSymphony
  • 我也遇到了这个问题:..不检查COIN-OR软件包CoinUtils ...,并通过"export PKG_CONFIG =/usr/local/bin/pkg-config; export PKG_CONFIG_PATH =/usr/local/lib/pkgconfig/"
  • I have found the solution in this link (...I got RSymphony to install, but it involved some hacking ...) Installing RSymphony using RStudio on macOS
  • I had also this issue: ..no checking for COIN-OR package CoinUtils... and it was solved by "export PKG_CONFIG=/usr/local/bin/pkg-config; export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/"

这篇关于OSX安装Rsymphony-链接标题和库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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