Gcc is successfully installed in linux with RPM-general Linux technology-Linux programming and kernel information. For details, see the following. Copy the following RPM package to a directory
Compat-gcc-32-3.2.3-47.3.i386.rpm
Compat-gcc-32-c ++-3.2.3-47.3.i386.rpm
Cpp-3.4.6-3.i386.rpm
Gcc-3.4.6-3.i386.rpm
Gcc-c ++-3.4.6-3. i386.rpm
Gcc-g77-3.4.6-3.i386.rpm
Gcc-gnat-3.4.6-3.i386.rpm
Gcc-java-3.4.6-3.i386.rpm
Gcc-objc-3.4.6-3.i386.rpm
Glibc-devel-2.3.4-2.25.i386.rpm
Glibc-headers-2.3.4-2.25.i386.rpm
Glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
Libgcc-3.4.6-3.i386.rpm
The above files can be found in
Http://mirror.be10.com/centos/4/ OS /i386/CentOS/RPMS/
Ftp://mirror.switch.ch/mirror/ SC .... olling/i386/SL/RPMS
Ftp://fr.rpmfind.net/linux/8/RPM/
Find ....
Installation sequence
Rpm-ivh cpp-3.4.6-3.i386.rpm
Rpm-ivh glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
Rpm-ivh glibc-headers-2.3.4-2.25.i386.rpm
Rpm-ivh glibc-devel-2.3.4-2.25.i386.rpm
Rpm-ivh gcc-3.4.6-3.i386.rpm
-----------------------------------------
The dependency of the software package must be installed with the nodeps attribute.
Rpm-Uvh *. rpm -- nodeps -- force
----------------------------------------
The following is the installation package required for installing gcc in red hat 9.0:
Cpp-3.4.6-3.i386.rpm
Glibc-devel-2.3.4-2.25.i386.rpm
Gcc-3.4.6-3.i386.rpm
Glibc-headers-2.3.4-2.25.i386.rpm
Glibc-2.3.4-2.25.i386.rpm
Glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
Glibc-common-2.3.4-2.25.i386.rpm
These files can be found at this link:
Ftp://mirror.switch.ch/mirror/ SC .... olling/i386/SL/RPMS
Ftp://fr.rpmfind.net/linux/8/RPM/
Make sure to follow the following sequence; otherwise, an error will be reported.
Rpm-Uvh glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
Rpm-Uvh glibc-headers-2.3.4-2.25.i386.rpm
Rpm-Uvh glibc-devel-2.3.4-2.25.i386.rpm
Rpm-Uvh cpp-3.4.6-3.i386.rpm
Rpm-Uvh gcc-3.4.6-3.i386.rpm
To compile a C ++ program, install g ++
Gcc-c ++-3.4.6-3. i386.rpm
Libstdc +-devel-3.4.6-8.i386.rpm
Libstdc ++-3.4.6-8. i386.rpm
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.