Related Posts Plugin for WordPress, Blogger...

Friday, February 25, 2011

g77 offline installation for all Ubuntu and Debian versions

Here is the simplest off-line installation procedure for g77 (fortran compiler) installation.

The general method for Ubuntu has been given in this post.

Here is the simplest method of all.

Just download one of the following  files depending on your architecture...

 For 32-bit OS users...
for 64-bit OS users...

if you don't know whether you are using 32-bit OS or 64-bit OS download this...

Download it and keep it on  Desktop...

Now open a terminal and type in the following...

The following applies for both 32-bit and 64-bit users...

cd ~/Desktop

tar -xzvf g77_*_debian_and_ubuntu.tar.gz
cd  g77_*_debian_and_ubuntu
chmod +x ./
After finishing installation you can verify installation by typing in the terminal:


which should give

g77: no input files


Print Friendly and PDF


  1. didn't work for me on ubuntu 11.04, x64.

  2. Hi. Thanks for the thread. But it does not work installing g77 ubuntu 11.04, x64. When trying ./, it appears dpkg: error: dpkg status database is locked by another process.
    Any help?

  3. Simplest solution is restart the system and try once again...

    If you still get the same problem;

    run the command:

    sudo rm /var/lib/dpkg/lock

    then run ./

    Please update here the further status...


  4. Doesn't work! Even restarting and re-installing doesn't.

  5. New files have been updated...

    Please download the file corresponding to your architecture x86/x86_64 and try once again...

    with regards,

  6. I tried this package today on my 32-bit Ubuntu 10.04, and it worked like a charm. I needed to compile+link a pretty complicated scientific package written by a third party for g77 (many files, libraries and so on), so thank you for giving me an easy way out (now that G77 is not generally available)...Thanx :)

  7. worked on 64 Kubuntu 10.04

  8. Worked on ubuntu 10.10 arch=X86_64

    But the way, in the file is lacking a space...

    if [[ `uname -m` = i*86 ]]; then sudo dpkg -i *.i386.deb *all.deb; elif [[ `uname -m` = x*64 ]]; then sudo dpkg -i *amd64.deb*all.deb; fi

    > sudo dpkg -i *amd64.deb *all.deb

  9. I am using LinuxMINT, or I should say what the command <> told me: 3.2.0-23-generic #36-Ubuntu SMP
    The generic version g77_all_* gave me <>
    but I found that I am i386 and tried the 32 bit version which has given me a program which acts like g77 ought to.
    Many thanks!

  10. sorry,

    I triy all of them on my machine - asus x54c- where I have mint: no one works!
    I always get this message

    bash: /usr/local/bin/g77: cannot execute binary file

    can you help me?


  11. The above one installs directly in /usr/bin

    So there is no point in searching /usr/local/bin

    Probably your previous installations might have created those. Please remove any traces of gcc and g77 from the folder /usr/local

    Then download this file

    keep it on desktop and follow the instructions.

    If problem still persists,
    Send me the output of following commands...

    uname -a

    lsb_release -a

    find / -name g77*


  12. I have tried this procedure on my laptop and it refused to install. Its giving this error
    "pdkg: error processing *.i386.deb (--install):"

    Can you help Please?


  13. plz try to edit the file

    replace "*.i386.deb" with "*i386.deb" without quotes...

    ie; remove the dot(.) and save and then run...

  14. Working perfectly on My Ubuntu 13.04...Thank you. :)

  15. hello, thanks for the solution, but i got a problem when using g77 -o ...

    /usr/bin/ld: cannot find crt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    /usr/bin/ld: cannot find -lgcc_s

    any ideas?
    collect2: ld returned 1 exit status

  16. I got the same problem as mentioned above:
    g77 -fno-automatic -c aamain.f
    g77 -fno-automatic -c bbegin.f
    g77 -fno-automatic -c cfuncs.f
    g77 -fno-automatic -c dsolve.f
    g77 -fno-automatic -c estate.f
    g77 -fno-automatic -o ev aamain.o bbegin.o cfuncs.o dsolve.o estate.o
    /usr/bin/ld: cannot find crt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    /usr/bin/ld: cannot find -lgcc_s
    collect2: ld returned 1 exit status
    make: *** [ev] Ошибка 1

  17. hi,

    I was trying to install g77 on my ubuntu 14.04 OS but after following the above instruction I am getting following erros.......

    /usr/bin/ld: cannot find crt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    /usr/bin/ld: cannot find -lgcc_s
    collect2: ld returned 1 exit status

    Plz help me.

  18. its awasome dude really its working fine for me in ubunt 12.4 lts......thank you so much

  19. Wenn es darum geht Ihr Sehvergnügen zu optimieren, während auch Ihr Zuhause suchen moderne und störungsfreie halten, können Sie nicht mit TV-Wandhalterungen Arm und anderes Zubehör, wie Fernsehen Aufzüge schief gehen. Als Fernseher entwickelt haben, so dass unsere Methoden für die Anzeige und mit ihnen. Während TV-Sender in der Vergangenheit einfach in Entertainment Schränken oder auf Tische gestellt wurden, dies muss nicht mehr mit Fernsehern von heute der Fall zu sein.

  20. I have tried this procedure on my 32 bit laptop and it failed. It's giving this error:
    pdkg: error processing *.i386.deb (--install):

    Please help with the commands.

  21. Hi, I just gone through this blog, the information was really very valuable, would love to see more from you. i have also plenty of the same kind of content You can explore my blog by clicking the link below
    Digital marketing Institute in Delhi
    Digital marketing Institute in karol bagh
    Digital marketing course in Delhi
    Digital marketing course in karolbagh