尝试通过Homebrew安装R时出错

时间:2015-05-23 02:55:31

标签: r macos

当我尝试通过Homebrew安装R(用于Vim-R-plugin)时:

brew install gcc
brew install r

然后尝试运行R:

R

我收到以下错误:

dyld: Library not loaded: /usr/local/lib/gcc/5/libgfortran.3.dylib
  Referenced from: /usr/local/Cellar/r/3.2.0_1/R.framework/Versions/3.2/Resources/lib/libR.dylib
  Reason: image not found
zsh: trace trap  R

我已经搜索了这个错误并尝试了一些运气不好的“解决方案”。任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:10)

Justin Licata是正确的。

运行以下问题解决了问题:

brew update && brew upgrade
brew reinstall gcc
brew reinstall r