OS X软件包安装问题:无法找到gfortran 4.8来构建软件包 [英] OS X package installation issue: Can't find gfortran 4.8 to build package
问题描述
我在Mac OS X El Capitan和Xcode 7上遇到了问题。我使用的是Fortran 6.1,从 https://gcc.gnu.org/wiki/GFortranBinaries 。我尝试降级到Fortran 4.8。但是这并没有帮助我。以下是错误:
$ b
安装源包'Nepidemic'... libs gfortran-4.8 -fPIC
-Wall -g -O2 -c random_epi.f95 -o random_epi.o make:gfortran-4.8:没有这样的文件或目录make:*** [random_epi.o]错误1错误:
编译失败包'流行'
有什么建议吗?提前致谢。
发现一个类似的问题,
无法找到gfortran 4.8来构建软件包
我从 https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
然后,我将以下内容添加到指向我的gfortran安装的主目录中的〜/ .R / Makevars文件中:
F77 = gfortran
FC = gfortran
FLIBS = -L / usr / local / gfortran / lib
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:
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.
Found one similar issue, Can't find gfortran 4.8 to build package
Following: Unable to install fortran based packages in R - "gfortran -m32:not found"
I installed gfortran 6.1 from https://gcc.gnu.org/wiki/GFortranBinaries#MacOS
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屋!