Install gcc on centos 5.8 rpm

Source: Internet
Author: User

Centos 5.8 rpm install gcc 1. Download the rpm package required for gcc installation. First, check the installed linux version, and then download the rpm package from the centos website. Bash Code # lsb_release-a www.2cto.com I installed centOS release 5.8 (final) corresponding to all the rpm package address: http://centos.mirror.fr.planethoster.net/5.8/ OS /i386/CentOS/ 2. find the following rpm packages on the page and install them as follows. Bash Code # rpm-ivh kernel-headers-2.6.18-308.e15.i386.rpm # rpm-ivh glibc-headers-2.5-81.i386.rpm # rpm-ivh glibc-devel-2.5.-81. i386.rpm # rpm-ivh gcc-4.1.2-52.e15.i386.rpm 3. Complete the installation and test whether the installation is successful. Bash Code # gcc-v TIPS: when installing the OS at www.2cto.com, gcc is not installed by default. Only libgcc is installed. Libgcc is a gcc Runtime Library. If you want to directly input the gcc command to compile the software, you have to install the following rpm packages: glibc-headers, kernel-headers, glibc-devel, and gcc. Bash Code # rpm-qa | grep gcc libgcc-4.1.2-52.el5 #/usr/libexec/gcc/i386-redhat-linux/4.1.2/PC3-v view gcc Installation

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.