0

由于 gfortran 编译错误,我在为 R 4.0.0 安装 Hmisc 包时遇到问题

gfortran-4.8: warning: couldn’t understand kern.osversion ‘15.6.0
f951: internal compiler error: Illegal instruction: 4
f951: internal compiler error: Abort trap: 6
gfortran-4.8: internal compiler error: Abort trap: 6 (program f951)
make: *** [cidxcn.o] Abort trap: 6

我正在运行 r 和 mac os x

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (64-bit)

我已经直接使用 brew 和 gfortran-4.8 重新安装了 gcc。我怎样才能解决这个问题?

4

1 回答 1

0

我在 Linux 上看到了类似的错误,并通过安装正确的 devel 包(gmp-devel mpfr-devel libmpc-devel ..)解决了所有这些错误。我从来不用重新安装 gcc/gfortran。

于 2017-03-21T21:11:34.010 回答