在OS X 10.7.4上找不到安装RSRuby的库 [英] Library not found installing RSRuby on OS X 10.7.4
本文介绍了在OS X 10.7.4上找不到安装RSRuby的库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在我的Mac上安装RSRuby。调用后:
I'm trying to get RSRuby installed on my Mac. After calling:
sudo gem install rsruby
我得到这个错误:
I am getting this error:
ERROR: Cannot find the R library, aborting.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/xxxxx/.rvm/rubies/ruby-1.9.3-p194/bin/ruby
--with-R-dir
--with-R-include
--without-R-include=${R-dir}/include
--with-R-lib
--without-R-lib=${R-dir}/lib
--with-Rlib
--without-Rlib
我正在使用Mac OS X 10.7.4,并且通过提供的.pkg安装了R。
I'm working on Mac OS X 10.7.4 and I installed R through the .pkg provided.
有什么想法吗?
推荐答案
对于处于同一情况的任何人,只需执行以下操作:
For anyone in the same situation just do as follows:
$ R_HOME=/Library/Frameworks/R.framework/Resources
$ gem install rsruby -- --with-R-dir=$R_HOME
这篇关于在OS X 10.7.4上找不到安装RSRuby的库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文