简体   繁体   中英

gfortran missing when installing R packages in MacOS Catalina

I just upgraded my Mac to Catalina and I've been having problems installing packages.

In particular I've been getting an error that suggests gfortran might be the problem.

I'm trying to install the sf package and it requires installing classInt and units.

The first batch of error messages are as follows:

** 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

I'm not sure if I have other problems further along or this failure then just causes cascading problems.

Oh I have R 3.3.2 installed.

Does anyone have suggestions for how I fix this error?

Thanks

I resolved this problem by reinstalling R. Seems to have fixed it, but now moving on to another error. Thanks for the help!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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