【发布时间】: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 thread 或these suggestions。
brew install gcc似乎是一个常见的建议。 -
谢谢!是的,很难找出可行的方法。当我尝试
brew install gcc时,我得到了-bash: brew: command not found。 -
你需要先安装自制软件。
-
设法安装了 GCC,但不幸的是在 R 端没有改变任何东西。不知道能不能查到我有什么版本?