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