OS X 包安装问题:找不到 gfortran 4.8 来构建包 [英] OS X package installation issue: Can't find gfortran 4.8 to build package
问题描述
我在使用 Xcode 7 的 mac os x El Capitan 上遇到问题.我使用的是从 https://gcc.gnu.org/wiki/GFortranBinaries.我尝试降级到 fortran 4.8.但这对我没有帮助.以下是错误:
I have an issue on mac os x El Capitan with Xcode 7. I'm using fortran 6.1, downloaded from https://gcc.gnu.org/wiki/GFortranBinaries. I tried degrading to fortran 4.8. but that didn't help me. Following is the error:
安装源代码包'Nepidemic' ... libs gfortran-4.8 -fPIC-Wall -g -O2 -c random_epi.f95 -o random_epi.o 制作:gfortran-4.8:没有这样的文件或目录制作:*** [random_epi.o] 错误 1 错误:包‘Epidemic’编译失败
installing source package ‘Nepidemic’ ... libs gfortran-4.8 -fPIC -Wall -g -O2 -c random_epi.f95 -o random_epi.o make: gfortran-4.8: No such file or directory make: *** [random_epi.o] Error 1 ERROR: compilation failed for package ‘Epidemic’
有什么建议吗?提前致谢.
Any suggestions? Thanks in advance.
发现了一个类似的问题,找不到 gfortran 4.8 来构建包
Found one similar issue, Can't find gfortran 4.8 to build package
推荐答案
如下:无法在 R 中安装基于 fortran 的包 - gfortran -m32:not found"
我从 https://gcc.gnu.org/wiki/GFortranBinaries#MacOS 安装了 gfortran 6.1
然后,我将以下内容添加到我的主目录中的文件 ~/.R/Makevars 中,指向我的 gfortran 安装:
Then, I added the following to the file ~/.R/Makevars within my home directory pointing to my gfortran installation:
F77 = gfortran
FC = gfortran
FLIBS = -L/usr/local/gfortran/lib
这篇关于OS X 包安装问题:找不到 gfortran 4.8 来构建包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!