Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can not install gfortran via homebrew

Tags:

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 
like image 596
fronthem Avatar asked Nov 13 '14 22:11

fronthem


People also ask

How do I install GFortran in Python?

Go to the site SourceForge MinGW-w64 for 32 & 64 bit Windows. and download MinGW installer ( mingw-w64-install.exe ). At the time of this writing, the downloaded file is mingw-w64-install.exe . Run mingw-w64-install.exe .

How install GFortran in Linux?

The gfortran compiler is part of the standard “gcc” compiler package, and may be pre-installed on recent unix systems. Check the version using “gfortran –version”. To install from the standard repository use: “sudo apt-get update; sudo apt-get install gfortran”


1 Answers

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

like image 86
janneb Avatar answered Oct 06 '22 19:10

janneb