在OS X 10.7.4上安装RSRuby时未找到库
我正试图在我的Mac上安装RSRuby。致电后:在OS X 10.7.4上安装RSRuby时未找到库,ruby,r,gem,Ruby,R,Gem,我正试图在我的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 fi
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
对于处于相同情况的任何人,只需执行以下操作:
$ R_HOME=/Library/Frameworks/R.framework/Resources
$ gem install rsruby -- --with-R-dir=$R_HOME
我正在运行OSX10.9.4,这对我来说很有用
export R_HOME=/Library/Frameworks/R.framework/Resources
gem install rsruby -- --with-R-dir=$R_HOME --with-R-include=$R_HOME/include --with-R-lib=$R_HOME/lib
我正在运行OSX10.9.4,这对我来说很有用
export R_HOME=/Library/Frameworks/R.framework/Resources
gem install rsruby -- --with-R-dir=$R_HOME --with-R-include=$R_HOME/include --with-R-lib=$R_HOME/lib
我遇到了这个问题,因为我还没有在我的mac(约塞米蒂)上安装R。我是用电脑做的
$ brew tap homebrew/science
$ brew install gcc
$ brew install Caskroom/cask/xquartz
$ brew install r
我遇到了这个问题,因为我还没有在我的mac(约塞米蒂)上安装R。我是用电脑做的
$ brew tap homebrew/science
$ brew install gcc
$ brew install Caskroom/cask/xquartz
$ brew install r
你为什么不在下面提供一个真实的答案呢?@Dason我不确定这是否是这里的行为习惯,我对此有些陌生:)与其把你的答案附在问题后面,不如在下面提供一个真实的答案?@Dason我不确定这是这里的行为习惯,我对此有些陌生:)如果R是用自制软件安装的,那么在/usr/local/ceral/R中查找相同的资源文件夹。。。对我来说是/usr/local/ceral/r/3.1.1/r.framework/Resources对我来说是
/usr/local/ceral/r/3.4.1_2/lib/r
。如果r是用自制软件安装的,那么在/usr/local/ceral/r中查找相同的资源文件夹。。。对我来说是/usr/local/ceral/r/3.1.1/r.framework/resources对我来说是/usr/local/ceral/r/3.4.1_2/lib/r
。