Install g77fortrancomplier in Linux-general Linux technology-Linux technology and application information. For details, refer to the following section. The following describes how to install g77 fortran complier in Linux.
1. Go to ftp://ftp.ntu.edu.tw/pub/gnu/gnu/g77to download g77-0.5.23.tar.gz
Go to ftp://ftp.ntu.edu.tw/pub/gnu/gnu/gccto download gcc-2.8.1.tar.gz
Confirm that the two are compatible with the version g77-0.5.23.tar.gz and gcc-2.8. * .tar.gz)
You can first unzip the g77-0.5. * .tar.gz and then view the./f/INSTALL file in the folder to view its compatible gcc version.
2. Create a directory named FSF under/usr/as root, as shown in the following instructions:
# Cd/usr
# Mkdir FSF
Move the two downloaded files to the FSF directory.
# Music g77-0.5.23.tar.gz/usr/FSF
# Music gcc-2.8.1.tar.gz/usr/FSF
3. Proceed with the following instructions and do not change any details:
# Cd/usr/src
# Gunzip-c </usr/FSF/gcc-2.8.1.tar.gz | tar xf-(note | pipe)
# Gunzip-c </usr/FSF/g77-0.5.23.tar.gz | tar xf-
# Ln-s gcc-2.8.1 gcc
# Ln-s g77-0.5.23 g77
# Mv-I g77/* gcc
# Cd gcc
#./Configure -- prefix =/usr)
# Make bootstrap)
# Make compare
# Rm-fr stage1
# Make-k install
# G77-v (check whether the g77 version has been installed)
4.for details, see the./g77-0.5.23/f/INSTALL file after unzipping g77-0.5.23.tar.gz.
Note: This installation process is passed in SUSE Linux 9.3, but note that the original gcc will be overwritten after the installation. Therefore, you must pay attention to the re-installation back to the original system gcc, otherwise, errors may occur during gcc compilation and cannot be made.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service