简体   繁体   English

OS X Yosemite 上 R 中的 gfortran 4.8 错误

[英]gfortran 4.8 error within R on OS X Yosemite

I have been using this R package for single-cell analysis (SCDE) for the past few months on a Linux machine without any problems.过去几个月我一直在 Linux 机器上使用这个 R 包进行单细胞分析 (SCDE) ,没有任何问题。

I have been having a lot of trouble getting it to work on my Mac, though.不过,让它在我的 Mac 上运行时遇到了很多麻烦。 Installing on Mavericks seems to work fine, but I've tried on two Macs with Yosemite to no avail.在 Mavericks 上安装似乎工作正常,但我已经在两台装有 Yosemite 的 Mac 上尝试过,但无济于事。

The problem seems to be with gfortran 4.8 not playing nice with Yosemite;问题似乎在于gfortran 4.8与 Yosemite 不兼容; I get this error:我收到此错误:

gfortran-4.8   -fPIC  -g -O2  -c dqrdc.f -o dqrdc.o
gfortran-4.8: warning: couldn’t understand kern.osversion ‘14.1.1

Many people get this error on Yosemite while trying to use gfortran outside of R, and the solution they have found is to upgrade to gfortran 5.0 , which has been fixed to work well with Yosemite.许多人在尝试在 R 之外使用gfortran在 Yosemite 上遇到此错误,他们找到的解决方案是升级到gfortran 5.0 ,该版本已被修复以与 Yosemite 配合使用。

However, R calls a specific version of gfortran (4.8) , so I'm kind of stuck here.但是,R 调用了特定版本的gfortran (4.8) ,所以我有点卡在这里。 I can't really upgrade to gfortran 5.0 because R won't recognize it, and gfortran 4.8 doesn't work well with my OS.我无法真正升级到gfortran 5.0因为 R 无法识别它,而且gfortran 4.8不能很好地与我的操作系统配合使用。

Any help would be much appreciated.任何帮助将非常感激。

If you have Homebrew, you can install gcc/gfortran 4.8 alongside newer gfortran like this:如果你有 Homebrew,你可以像这样安装 gcc/gfortran 4.8 和新的 gfortran:

brew install gcc48 --with-fortran

Same issue discussed in more detail here: OS X package installation depends on gfortran-4.8此处更详细地讨论了相同的问题: OS X 软件包安装取决于 gfortran-4.8

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

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