fro*_*hem 19 homebrew fortran gfortran fortran90
当我试图安装gfortran时,我收到了此消息.
~$ brew install gfortran
Error: No available formula for gfortran
GNU Fortran is now provided as part of GCC, and can be installed with:
brew install gcc
Run Code Online (Sandbox Code Playgroud)
我的问题是如何用自制软件或端口安装gfortran?
要么
如果现在GNU Fortran是GCC的一部分我如何使用gcc编译fortran代码?
我不确定我是否误解了一些我记得上次我仍然可以使用gfortran编译我的代码但现在它不起作用的东西.
更多的信息:
当我使用命令时,brew list我仍然看到gfortran在那里,但不能使用它.
更多信息(最新):
好的,现在我可以使用gfortran命令,但另一个问题来了
~$ gfortran-4.9 hello.f
dyld: Library not loaded: /usr/local/lib/libcloog-isl.4.dylib
Referenced from: /usr/local/Cellar/gcc/4.9.2/libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/f951
Reason: image not found
gfortran-4.9: internal compiler error: Trace/BPT trap: 5 (program f951)
Abort trap: 6
Run Code Online (Sandbox Code Playgroud)