在OS X 10.7.4上安装RSRuby时未找到库[英] Library not found installing RSRuby on OS X 10.7.4

本文是小编为大家收集整理的关于在OS X 10.7.4上安装RSRuby时未找到库的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我正在尝试将Rsruby安装在Mac上.打电话后:

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 

其他推荐答案

我遇到了这个问题,因为我尚未在Mac上安装R(优胜美地).我使用

做了
$ brew tap homebrew/science 
$ brew install gcc
$ brew install Caskroom/cask/xquartz
$ brew install r

其他推荐答案

我正在运行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

本文地址:https://www.itbaoku.cn/post/786807.html

问题描述

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

I'm working on Mac OS X 10.7.4 and I installed R through the .pkg provided.

Any idea?

推荐答案

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 

其他推荐答案

I experienced this problem as I had not yet installed R on my mac(Yosemite). I did it using

$ brew tap homebrew/science 
$ brew install gcc
$ brew install Caskroom/cask/xquartz
$ brew install r

其他推荐答案

I'm running OS X 10.9.4 and this worked for me.

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