Nowadays, the compiler is changing rapidly, and accidentally lags behind the times. In the past, many programs were compiled with g77. In the new Ubuntu10.10Linux system, g77 has been completely replaced by gfortran. However, the problem is that gfortran is not fully compatible with g77 in the past, and it is unlikely to complete the modification program .. Helpless, so I had to explore for myself as an amateur. I am using the latest Ubuntu10.10 and can automatically install the new version of gcc (but g77 is no longer available ). I use
Nowadays, the compiler is changing rapidly, and accidentally lags behind the times.
In the past, many programs were compiled with g77. In the new Ubuntu 10.10 Linux system, g77 has been completely replaced by gfortran. However, the problem is
Gfortran is not fully compatible with g77 in the past, and it seems impossible to complete the modification program .. Helpless.
The identities of amateurs are self-explored.
I am using the latest Ubuntu 10.10, and can automatically install the new version of gcc (but there is no g77 ). I installed g77 using the following method.
1. Add the following source in the/etc/apt/source. list (as root or sudo ):
Deb http://hu.archive.ubuntu.com/ubuntu/ hard universe
Deb-src http://hu.archive.ubuntu.com/ubuntu/ hard universe
Deb http://hu.archive.ubuntu.com/ubuntu/ hard-updates universe
Deb-src http://hu.archive.ubuntu.com/ubuntu/ hard-updates universe
2. Install aptitude
Sudo apt-get install aptitude
3. Run the following command:
Sudo aptitude update
Sudo aptitude install g77
4. Now you can use g77 to compile my original program.