简体   繁体   English

MacOSX Yosemite:在终端中使用R-gfortran错误

[英]MacOSX Yosemite: Using R in the Terminal - a gfortran error

I just recently updated to the newest build of MacOSX Yosemite (Yosemite Beta Version 3 - September 15th 2014 Update). 我最近更新到了MacOSX Yosemite的最新版本(Yosemite Beta版本3-2014年9月15日更新)。 R was working fine in Yosemite before this new update, but now I am getting this error when I run from the command line: 在此新更新之前,R在优胜美地工作正常,但现在从命令行运行时出现此错误:

dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/x86_64-apple-darwin13.2.0/4.8.3/libgfortran.3.dylib
  Referenced from: /usr/local/Cellar/r/3.1.1/R.framework/Versions/3.1/Resources/lib/libR.dylib
  Reason: image not found
[1]    80010 trace trap  R

It's a gfortran error I presume -- I've re-installed X-Code, gcc4.9 (etc.), and gfortran (I use homebrew to manage my packages and tried to compile from package too) to no avail. 我认为这是gfortran错误-我已经重新安装了X-Code,gcc4.9(等)和gfortran(我使用自制软件来管理我的软件包,并尝试从软件包进行编译)也无济于事。

I haven't noticed any other applications or programs that have stopped working. 我还没有注意到其他任何已停止工作的应用程序或程序。

Here's the real kicker for me: R from within R-Studio works like a charm. 这对我来说是真正的踢腿:R-Studio中的R就像一个魅力。

This wouldn't be a big deal, but I use R from the command line in a couple of my data analysis pipelines. 没什么大不了的,但是我在几个数据分析管道中从命令行使用R。

Any ideas how to fix this error? 任何想法如何解决此错误? Googling around has got me nowhere. 谷歌搜索使我无处可去。

UPDATES: 更新:

  • This isn't such a big deal to go back and install Mavericks -- I was running both for a while, but Yosemite doesn't have any large problems with the new beta updates. 可以回去安装Mavericks并不是什么大不了的事-我已经运行了一段时间,但是优胜美地的新Beta版更新没有任何大问题。 I can still use R via RStudio, just glibfortran is not talking to R in my terminal. 我仍然可以通过RStudio使用R,只是glibfortran不在终端中与R通讯。 I'm just concerned for scripts that call on R at the command line. 我只关心在命令行上调用R的脚本。

  • Doesn't appear to be a homebrew issue as when I compile gfortran from source I get the same error. 似乎不是家酿问题,因为当我从源代码编译gfortran时,我遇到了同样的错误。

FINAL UPDATE: 最后更新:

This error was fixed in the newest Yosemite Beta release Version 4 on September 30th 2014. 此错误已在2014年9月30日发布的最新Yosemite Beta版本4中得到修复。

UPDATES: 更新:

This isn't such a big deal to go back and install Mavericks -- I was running both for a while, but Yosemite doesn't have any large problems with the new beta updates. 可以回去安装Mavericks并不是什么大不了的事-我已经运行了一段时间,但是优胜美地的新Beta版更新没有任何大问题。 I can still use R via RStudio, just glibfortran is not talking to R in my terminal. 我仍然可以通过RStudio使用R,只是glibfortran不在终端中与R通讯。 I'm just concerned for scripts that call on R at the command line. 我只关心在命令行上调用R的脚本。

Doesn't appear to be a homebrew issue as when I compile gfortran from source I get the same error. 似乎不是家酿问题,因为当我从源代码编译gfortran时,我遇到了同样的错误。

FINAL UPDATE: 最后更新:

This error was fixed in the newest Yosemite Beta release Version 4 on September 30th 2014. 此错误已在2014年9月30日发布的最新Yosemite Beta版本4中得到修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM