Recompile the GCC-4.3.0-general Linux technology-Linux programming and kernel information, below is the details to read. GCC is a set of program compilers in Unix, including C, C ++, Fortran77, and Java. Upgrading GCC helps shorten the compilation process and generate more efficient programs, however, the compiled program may be large. the latest version is 4. 3. next we will start to install version 4.3.
First of all, make sure that your Unix environment has the compiling language. The system I use is RedHat AS 4.0 U6.
The GCC environment can contain no compiler. C, C ++, g77, and Java are installed by default. generally, you need to specify the compilers to upgrade when upgrading GCC and the compiler. This article focuses on the upgrade of C and C ++ compilers, including g95.g95, the latest version of Fortran. In many cases, the source code still calls g77 for compilation.
# Gcc
Gcc: no input files
# C ++
C ++: no input files
# G77
G77: no input files
C, c ++, and g77 are integrated into GCC.
# Java
-Bash: java: command not found
This indicates that it is not installed.
To install GCC, you must first install mpfr and gmp (these two packages are required for the Fortran compiler)
Uninstall first.
# Rpm-qa | grep gmp
Gmp-devel-4.1.4-3
Gmp-4.1.4-3
Next, we will start to install gcc. We do not recommend that you delete the old version of gcc. You just need to point the gcc to a new version. In this way, you can still use the old version of gcc.
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.