I am running Ubuntu 11.04. I wanted to install gfrotran 4.6 on my system.

Can anyone please explain (show all) steps required to install gfortran 4.6 on ubuntu 11.04?

I did the following:

sudo apt-get update
sudo apt-get install gfortran-4.6

… and got:

E: Unable to locate package gfortran-4.6
  • This package seems to exist for 11.10, not 11.04. You might need to upgrade Ubuntu or get it from somewhere else.
    – slhck
    Sep 16 '12 at 16:50

Like slhck already mentions, it is not available for 11.04. However you can build it from source. Depending on your experience with linux this might be easy or hard but the steps you need to follow are here: http://gcc.gnu.org/wiki/InstallingGCC (gfortran is included in gcc)

for more information about building from source: https://help.ubuntu.com/community/CompilingEasyHowTo

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.