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 gfortranbut 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?
21 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.