Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installation of compiler gfortran in centos 6

I try to install some compilers. I use Centos 6 in my laptop. I have installed the gcc, the "GNU" C Compiler. I need to install also gfortran, but when I type yum install gfortran, I get the message no package gfortran available.

Do you know how can I install the fortran compiler?

like image 761
Enric Agud Pique Avatar asked May 27 '15 17:05

Enric Agud Pique


People also ask

How do I install a Fortran compiler?

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”

How do I add Gfortran to my path?

To add it go to Start>; right click Computer and select Properties; go to Advanced System Settings; select the Advanced tab; select Environment Variables (the bottom one); scroll down in the bottom menu until you find the Path variable and then add the MinGW\bin directory at the end (be careful not to delete your ...

Is Gfortran included in GCC?

GFortran documentation is included with the GCC documentation, which is available from the GCC website. There is documentation for released compilers, and also documentation for the latest snapshot from the development tree.

How do I know if Gfortran is installed Linux?

To get the version, try at the command line: $ gfortran --version GNU Fortran (Ubuntu/Linaro 4.6. 1-9ubuntu3) 4.6.


1 Answers

Try yum install gcc-gfortran

You can use yum search gfortran, to view relevant packages

like image 186
Deeh Avatar answered Oct 18 '22 16:10

Deeh