【问题标题】:gfortran missing when installing R packages in MacOS Catalina在 MacOS Catalina 中安装 R 包时缺少 gfortran
【发布时间】:2020-01-29 04:47:19
【问题描述】:

我刚刚将我的 Mac 升级到 Catalina,但在安装软件包时遇到了问题。

特别是我收到了一个错误,表明 gfortran 可能是问题所在。

我正在尝试安装 sf 包,它需要安装 classInt 和 units。

第一批错误信息如下:

** package ‘classInt’ successfully unpacked and MD5 sums checked
** libs
gfortran-4.8   -fPIC  -g -O2  -c fish1.f -o fish1.o
make: gfortran-4.8: No such file or directory
make: *** [fish1.o] Error 1
ERROR: compilation failed for package ‘classInt’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/classInt’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/classInt’
Warning in install.packages :
  installation of package ‘classInt’ had non-zero exit status

我不确定我是否还有其他问题,或者这次失败只会导致级联问题。

哦,我已经安装了 R 3.3.2。

有人对我如何修复此错误有建议吗?

谢谢

【问题讨论】:

  • 周围有很多建议,很难知道在任何给定情况下什么是有效的。试试this threadthese suggestionsbrew install gcc 似乎是一个常见的建议。
  • 谢谢!是的,很难找出可行的方法。当我尝试brew install gcc 时,我得到了-bash: brew: command not found
  • 你需要先安装自制软件。
  • 设法安装了 GCC,但不幸的是在 R 端没有改变任何东西。不知道能不能查到我有什么版本?

标签: r macos gfortran


【解决方案1】:

我通过重新安装 R 解决了这个问题。似乎已经修复了它,但现在转向另一个错误。感谢您的帮助!

【讨论】:

    猜你喜欢
    • 2020-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-02
    • 1970-01-01
    相关资源
    最近更新 更多