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.

 

sudo aptitude update
One Comment

Add a Comment

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