Install gcc in Redhatlinux

Source: Internet
Author: User
Install gcc in Redhatlinux-general Linux technology-Linux programming and kernel information. For more information, see. 1. Installation Steps

1. Use the which gcc command to find that gcc Is Not Installed

2. Copy the gcc-3.2.2-5.i386.rpm to try to install

It indicates that binutils, cpp, and glibc-devel must be installed before this operation.

3. Copy binutils-2.13.90.0.18-9.i386.rpm

Cpp-3.2.2-5.i386.rpm

Install glibc-devel-2.3.2-11.9.i386.rpm separately in the install directory

Rpm-ivh binutils-2.13.90.0.18-9.i386.rpm
Rpm-ivh cpp-3.2.2-5.i386.rpm

But an error is reported when installing the third package glibc-devel-2.3.2-11.9.i386.rpm:

The kernel-headers must be installed before the package is installed.

4. Copy the glibc-kernheaders-2.4-8.10.i386.rpm to the install directory for Installation

Rpm-ivh glibc-kernheaders-2.4-8.10.i386.rpm

5. Continue to reinstall the glibc-devel-2.3.2-11.9.i386.rpm

Rpm-ivh glibc-devel-2.3.2-11.9.i386.rpm

6. Finally reinstall the gcc-3.2.2-5.i386.rpm

Rpm-ivh gcc-3.2.2-5.i386.rpm

7. Use which gcc again

The installation is successful!

Ii. Summary

Copy the following five installation packages:

Binutils-2.13.90.0.18-9.i386.rpm

Glibc-devel-2.3.2-11.9.i386.rpm
Cpp-3.2.2-5.i386.rpm

Glibc-kernheaders-2.4-8.10.i386.rpm
Gcc-3.2.2-5.i386.rpm

The installation sequence is as follows:

Rpm-ivh binutils-2.13.90.0.18-9.i386.rpm
Rpm-ivh cpp-3.2.2-5.i386.rpm

Rpm-ivh glibc-kernheaders-2.4-8.10.i386.rpm

Rpm-ivh glibc-devel-2.3.2-11.9.i386.rpm

Rpm-ivh gcc-3.2.2-5.i386.rpm

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.