Ubuntu 10.04 install g77

Ubuntu 10.04 install g77

Today, I get a source code must be compile with g77. I use Ubuntu 10.04 and can not get this compiler in this Ubuntu version. After searching, I get information about g77 repository in Ubuntu 8.04 (Hardy). We can install this program with repository from Ubuntu Hardy. This is a method how Ubuntu 10.04 install g77. We can use this method to install g77 in Ubuntu 9.04 or other version. I only try to Ubuntu 10.04 and 9.04. But, I think this method success for other Ubuntu version.

1. Edit your /etc/apt/sources.list

2. add this text in that file (/etc/apt/sources.list)

deb http://hu.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://hu.archive.ubuntu.com/ubuntu/ hardy universe
deb http://hu.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://hu.archive.ubuntu.com/ubuntu/ hardy-updates universe

3. Save file

4. Open terminal, type : sudo aptitude update

5. type : sudo aptitude install g77

After you success install this program, you can comment the repository above and update your repository location. This is a method how Ubuntu 10.04 install g77, but the main idea from this article is how to install old program or adding repository to Ubuntu.


One thought on “Ubuntu 10.04 install g77

  1. Newer distros (e.g. 12.04) apparently changed the paths of some required files. After installing g77 as explained above, I got a working suite doing (as root):
    cd /usr/lib/gcc/i486-linux-gnu/3.4.6
    ln -sfn /usr/lib/i386-linux-gnu/crt?.o .
    ln -sfn /lib/i386-linux-gnu/libgcc_s.so.1 libgcc_s.so
    I guess that 64-bit systems (mine is 32-bit) require extra, similar links done in /usr/lib/gcc/i486-linux-gnu/3.4.6/64

Leave a Reply to Michal Cancel reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.