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...
didn't work for me on ubuntu 11.04, x64.
ReplyDeleteHi. 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.
ReplyDeleteAny help?
Thnx
Simplest solution is restart the system and try once again...
ReplyDeleteIf 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
Yes, that worked well in my system. Tks.
DeleteDoesn't work! Even restarting and re-installing doesn't.
ReplyDeleteNew files have been updated...
ReplyDeletePlease download the file corresponding to your architecture x86/x86_64 and try once again...
with regards,
SANJEEV
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 :)
ReplyDeleteworked on 64 Kubuntu 10.04
ReplyDeleteThanks!!
Worked on ubuntu 10.10 arch=X86_64
ReplyDeleteBut 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
I am using LinuxMINT, or I should say what the command <> told me: 3.2.0-23-generic #36-Ubuntu SMP
ReplyDeleteThe 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!
sorry,
ReplyDeleteI 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
The above one installs directly in /usr/bin
ReplyDeleteSo 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
I have tried this procedure on my laptop and it refused to install. Its giving this error
ReplyDelete"pdkg: error processing *.i386.deb (--install):"
Can you help Please?
Thanks
plz try to edit the install.sh file
ReplyDeletereplace "*.i386.deb" with "*i386.deb" without quotes...
ie; remove the dot(.) and save and then run...
Thanks man it worked!!!
ReplyDeleteWorking perfectly on My Ubuntu 13.04...Thank you. :)
ReplyDeletehello, thanks for the solution, but i got a problem when using g77 -o ...
ReplyDelete/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
I got the same problem as mentioned above:
ReplyDeleteg77 -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
hi,
ReplyDeleteI 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.
its awasome dude really its working fine for me in ubunt 12.4 lts......thank you so much
ReplyDeleteWenn 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.
ReplyDeleteVisit http://www.moviesundunterhalrung.de.rs
I have tried this procedure on my 32 bit laptop and it failed. It's giving this error:
ReplyDeletepdkg: error processing *.i386.deb (--install):
Please help with the commands.
Check The latest version of ex file explorer for pc android and ios devices
ReplyDeletehttps://es-fileexplorer.co/es-file-explorer-for-android-and-pc/
10x pure cbd
ReplyDelete