Reproduced RedHat Enterprise Linux 5 Installing GCC

Source: Internet
Author: User

Note: When Redhat Enterprise Linux 5 was using GCC to compile the first program, it was found that GCC was not installed. Search online to see this post. Then go here to learn. Thank you for sharing the "lone guest" in the blog park. @ The lone guest of the dust

Abstraction Red Hat Enterprise 5 does not install GCC by default and requires its own manual installation. GCC required packages can be found on the installation CD, as for the latest GCC can be downloaded in http://gcc.gnu.org/, but it is compressed in the form of source code, it needs to be compiled.
Solution 1, insert the installation disk, first create the CDROM folder under/mnt, and then mount the installation disk: Mount/dev/cdrom/mnt/cdrom;
2. Enter/mnt/cdrom/server and install the following packages sequentially:
(1) Installation kernel-headers-2.6.18-128.el5.i386.rpm
[email protected] server]# RPM-IVH./kernel-headers-2.6.18-128.el5.i386.rpm
warning:./kernel-headers-2.6.18-128.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:kernel-headers ########################################### [100%]
(2) Installation glibc-headers-2.5-34.i386.rpm
[email protected] server]# RPM-IVH./glibc-headers-2.5-34.i386.rpm
warning:./glibc-headers-2.5-34.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:glibc-headers ########################################### [100%]
(3) Installation glibc-devel-2.5-34.i386.rpm
[email protected] server]# RPM-IVH./glibc-devel-2.5-34.i386.rpm
warning:./glibc-devel-2.5-34.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:glibc-devel ########################################### [100%]
(4) Installation libgomp-4.3.2-7.el5.i386.rpm
[email protected] server]# RPM-IVH./libgomp-4.3.2-7.el5.i386.rpm
warning:./libgomp-4.3.2-7.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:libgomp ########################################### [100%]
(5) Installing RPM-IVH gcc-4.1.2-44.el5.i386.rpm
[email protected] server]# RPM-IVH gcc-4.1.2-44.el5.i386.rpm
warning:gcc-4.1.2-44.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:GCC ########################################### [100%]
(6) Installation libstdc++-devel-4.1.2-44.el5.i386.rpm
[email protected] server]# RPM-IVH./libstdc++-devel-4.1.2-44.el5.i386.rpm
warning:./libstdc++-devel-4.1.2-44.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:libstdc++-devel ########################################### [100%]
(7) Installation gcc-c++-4.1.2-44.el5.i386.rpm
[email protected] server]# RPM-IVH./gcc-c++-4.1.2-44.el5.i386.rpm
warning:./gcc-c++-4.1.2-44.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:gcc-c++ ########################################### [100%]
It may be necessary to install additional installation packages in this procedure, as follows:
[Email protected] server]# RPM-IVH gcc-4.1.2-14.el5.i386.rpm
warning:gcc-4.1.2-14.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
error:failed dependencies:
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-14.el5.i386
Find the appropriate installation package to install
[Email protected] server]# RPM-IVH gcc-4.1.2-14.el5.i386.rpm
warning:gcc-4.1.2-14.el5.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
error:failed dependencies:
glibc-devel >= 2.2.90-12 is needed by gcc-4.1.2-14.el5.i386
[Email protected] server]# RPM-IVH glibc-devel-2.5-18.i386.rpm
warning:glibc-devel-2.5-18.i386.rpm:header V3 DSA signature:nokey, key ID 37017186
Preparing ... ########################################### [100%]
1:glibc-devel ########################################### [100%]
3, finally enter the/mnt, input Rpm–qa gcc*, if the successful installation of GCC, you can find the following content:
binutils-2.13.90.0.18-9.i386.rpm
cpp-3.2.2-5.i386.rpm

Reproduced RedHat Enterprise Linux 5 Installing GCC

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.