【问题标题】:How to install R libraries after using homebrew?使用自制软件后如何安装 R 库?
【发布时间】:2015-09-13 15:37:24
【问题描述】:

我第一次使用homebrewhomebrew cask 来安装程序和管理包。在brew install homebrew/science/Rbrew cask install rstudio之后,我尝试在rstudio 中安装一些库,但总是以类似语法的警告和错误结束:

installing *source* package ‘Rcpp’ ...
Paket ‘Rcpp’ erfolgreich entpackt und MD5 Summen überprüft
libs
sh: make: command not found
ERROR: compilation failed for package ‘Rcpp’
removing ‘/usr/local/lib/R/3.2/site-library/Rcpp’`

Warning in install.packages :
installation of package ‘Rcpp’ had non-zero exit status`

installing *source* package ‘stringi’ ...
Paket ‘stringi’ erfolgreich entpackt und MD5 Summen überprüft
checking for local ICUDT_DIR... icu55/data
checking for R_HOME...  /usr/local/Cellar/r/3.2.2_1/R.framework/Resources
checking for R... /usr/local/Cellar/r/3.2.2_1/R.framework/Resources/bin/R
checking for R >= 3.1.0... yes
checking for cat... /bin/cat
/usr/local/Cellar/r/3.2.2_1/R.framework/Resources/bin/config: line 150:       make: command not found
/usr/local/Cellar/r/3.2.2_1/R.framework/Resources/bin/config: line 151: make: command not found`

等等……

我在我的OSX 10.8.5 上安装了Xcode 5.1.1(不是通过 Homebrew) 在整个 Mac 设置过程的开始,并假设 Command Line Tools 包括在内。

顺便说一句,brew医生说Your system is ready to brew

我该如何处理?

【问题讨论】:

  • 您安装了 Xcode 和命令行工具吗?您使用的是哪个操作系统版本?
  • 您需要做一些事情来接受许可,否则命令行工具将无法工作。我总是忘记到底是什么,最后用谷歌搜索。
  • xcode-select --install 应该为您提供make 和其他基本必需品。
  • @罗兰。我专注于那个。一开始打开Xcode接受了许可
  • @Mamba 很抱歉没有看到您在 10.8.5 上。尝试wiki.freeswitch.org/wiki/… 安装 Xcode。

标签: r homebrew


【解决方案1】:

正如 hrbrmstr 在 cmets 中所说,在 OS X 10.8.5 中,您还必须 install the command line tools

安装命令行工具 (CLT)

安装 Xcode 后,必须安装编译器和命令行工具。这是通过启动 Xcode,打开首选项,单击“下载”,然后单击“安装命令行工具”来执行的。 CLT 放置在 /Applications/Xcode.app/Contents/Developer 和各种系统目录中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-26
    • 1970-01-01
    • 1970-01-01
    • 2014-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多