我正在尝试在我的 Mac 上安装 RSRuby。调用后:
sudo gem install rsruby
我收到此错误:
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。
有什么想法吗?
最佳答案
对于处于相同情况的任何人,只需执行以下操作:
$ R_HOME=/Library/Frameworks/R.framework/Resources
$ gem install rsruby -- --with-R-dir=$R_HOME
关于ruby - 在 OS X 10.7.4 上安装 RSRuby 时找不到库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13686769/