2

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 をインストールしました。

何か案が?

4

3 に答える 3

3

同じ状況にある人は、次のようにしてください。

$ R_HOME=/Library/Frameworks/R.framework/Resources
$ gem install rsruby -- --with-R-dir=$R_HOME 
于 2012-12-03T15:57:51.440 に答える
1

Mac (Yosemite) に R をまだインストールしていないため、この問題が発生しました。使ってやった

$ brew tap homebrew/science 
$ brew install gcc
$ brew install Caskroom/cask/xquartz
$ brew install r
于 2015-05-14T10:50:21.310 に答える
0

OS X 10.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
于 2015-01-14T18:50:40.210 に答える