Tuesday, January 30, 2018

64 bit - g77 for Ubuntu 14.04 (64 bit)




I have been having troubles installing g77. When I type "sudo apt-get install g77" in terminal I get:



"""
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g77 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source.




E: Package 'g77' has no installation candidate
"""



I am aware that g77 is no longer supported. I have gfortran, gcc, etc. installed but I need g77 for some older code that I want to use.



I have read one way to do this is to download g77 (64 bit) and install it (http://conquer-ur-computer.blogspot.ca/2011/02/g77-offline-installation-for-all-ubuntu.html), but I can't seem to find a safe place to download.



Any help would be appreciated.



Thanks.




To get it to work, I followed karel's instructions:



Downloaded g77 from Ziddu, link on karel's comment.
Scanned the file for viruses and malware before and after unzipping it (wasn't sure it Ziddu was safe).
Put the unzipped file on my desktop.
In the desktop directory of my terminal entered:



tar -xzvf g77_x64_debian_and_ubuntu.tar.gz 
cd g77_x64_debian_and_ubuntu

chmod +x ./install.sh
sudo ./install.sh


Then it worked (tested by entering g77 in terminal, reads: g77: no input files).


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...