Steps for installing the gcc compiling environment in RedHat5

Source: Internet
Author: User
The specific steps for installing the gcc compiling environment in RedHat5 are: by default, the development compiling environment (gcc) in linux is not installed in RHEL5 ), this software package depends on other packages. you can run the following command to install RHEL4 before: rpm-ivhgcc * -- aidrpm-ivhgcc *... steps for installing the gcc compiling environment in RedHat 5: by default, the development compiling environment (gcc) in linux is not installed in RHEL5 ), this software package depends on many other packages. when using RHEL4 previously, you can run the following command to install it: rpm-ivh gcc * -- aidrpm-ivh gcc * -- force -- nodeps note: if an error may be reported when the software package is compiled in RHEL5 according to the above method, it is best to install all the dependent packages before installing the gcc compiling environment. the installation can be successful only by following the installation sequence. the specific installation steps are as follows: 1. go to the directory where the software package is located (cd or online download) # cd/media/RHEL_5.6 \ i38 6 \ DVD/Server (CD directory) II. install gcc and all dependent packages: 1. [root @ rhel5] # rpm-ivh kernel-headers-2.6.18-53.el5.i386.rpm2, [root @ rhel5] # rpm-ivh glibc-headers-2.5-18.i386.rpm3, [root @ rhel5] # rpm-ivh glibc-devel-2.5-18.i386.rpm4, [root @ rhel5] # rpm-ivh libgomp-4.1.2-14.el5.i386.rpm5, [root @ rhel5] # rpm-ivh gcc-4.1.2-14.el5.i386.rpm6, [root @ rhel5] # rpm-ivh libstdc ++-devel-4.1.2-14.el5.i386.rpm7, [root @ rhel5] # rpm- ivh gcc-c + +-4.1.2-14. el5.i386. rpm 3. after installing the development and compilation environment, you can use the rpm command to query and verify whether the most important gcc software package is successfully installed in the system: # rpm-q gcc gcc-4.1.2-50.el5 indicates that the installation is successful, you can compile and install various source code packages!

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.