How do I install gfortran?

I am trying to install gfortran in my computer with Ubuntu 12.04 by using these commands,

sudo -i
apt-get update
apt-get install gfortran

but I found the program saying "unable to locate package gfortran". Then on a Ubuntu page I found some question regarding the same problem and I went through the solution from them but again I couldn't install the gfortran package.

Can anybody tell me how to install it?

2

1 Answer

Using sudo apt-get install gfortran should install the latest version of gfortran available for your system. Madison has a list of all versions available for all supported versions.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like