无法通过自制软件安装gfortran [英] Can not install gfortran via homebrew

查看:189
本文介绍了无法通过自制软件安装gfortran的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 〜$ brew install gfortran 
错误:无可用的gfortran公式
GNU Fortran现在作为GCC的一部分提供,可以安装:
brew install gcc

我的问题是如何使用自制软件或端口安装gfortran?



如果现在GNU Fortran是GCC的一部分我如何使用gcc编译fortran代码?



我不确定可能是我误解了某些东西,我记得上一次我仍然可以使用gfortran编译我的代码,但现在它不起作用。 / p>

更多信息:

当我使用命令 brew列表



更多信息(最新):

好吧,现在我可以使用 gfortran 命令,但另一个问题来了

 〜 $ gfortran-4.9 hello.f 
dyld:库未加载:/usr/local/lib/libcloog-isl.4.dylib
引用自:/usr/local/Cellar/gcc/4.9.2 /libexec/gcc/x86_64-apple-darwin14.0.0/4.9.2/f951
原因:找不到图像
gfortran-4.9:内部编译器错误:跟踪/ BPT陷阱:5(程序f951)
中止陷阱:6


解决方案

Ju按照说明做brew install gcc。 gcc软件包包含gcc,g ++,gfortran等。


I got this message when i tried to install 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

My question is how to install gfortran with homebrew or port?

or

If now GNU Fortran is a part of GCC How can i compile fortran code using gcc?

I'm not sure may be i've misunderstood something i remember that the last time i still can use gfortran to compile my code but now it doesn't work.

Further information:

when i use command brew list i still see that gfortran is there but can not use it.

Further information (latest):

ok, now i can use gfortran command but another problem come

~$ 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

解决方案

Just do "brew install gcc" per the instructions. The gcc package contains gcc, g++, gfortran etc.

这篇关于无法通过自制软件安装gfortran的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆