Linux installation g77 compiler skills

  

In Ubuntu10.10 system, g77 has been completely replaced by gfortran, but not fully compatible with the past g77, so you can not use some programs compiled with 977. So we can only install g77 ourselves.

as follows:

First become root: sudo bash

1. Finally, add the following header in the source /etc/apt/source.list ( As root, or with sudo):

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

2. Install aptitude

sudo apt-get install aptitude

3. Then execute the following:

Sudo aptitude update

sudo aptitude install g77

4. Now I can compile my original program with g77.

After this is set, you can compile the original program using the g77 compiler. Is the method even simpler than you think? Friends who are in need can try it out.

Copyright © Windows knowledge All Rights Reserved