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 ./install.sh
./install.sh
After finishing installation you can verify installation by typing in the terminal:

g77

which should give

g77: no input files

Cheers...


Print Friendly and PDF

24 comments:

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

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

    ReplyDelete
  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 ./install.sh

    Please update here the further status...

    Cheers,
    SANJEEV

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

    ReplyDelete
  5. New files have been updated...

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


    with regards,
    SANJEEV

    ReplyDelete
  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 :)

    ReplyDelete
  7. worked on 64 Kubuntu 10.04
    Thanks!!

    ReplyDelete
  8. Worked on ubuntu 10.10 arch=X86_64

    But the way, in the install.sh 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

    ReplyDelete
  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!

    ReplyDelete
  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?

    thanks

    ReplyDelete
  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

    http://www.mediafire.com/file/0gzrgdkk3bwzmfz/g77_all_debian_and_ubuntu.tar.gz

    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*


    Cheers,
    SANJEEV

    ReplyDelete
  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?

    Thanks

    ReplyDelete
  13. plz try to edit the install.sh file


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

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

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

    ReplyDelete
  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

    ReplyDelete
  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
    Lev

    ReplyDelete
  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.

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

    ReplyDelete
  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.
    Visit http://www.moviesundunterhalrung.de.rs

    ReplyDelete
  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.

    ReplyDelete