Centos5. 8rpm install gcc1. 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-awww.2cto.com I installed centOSrelea... centos 5.8 rpm install gcc 1. download the rpm package required to install gcc. First, check the installed linux version, and then download the rpm package from the centos website. Bash Code # lsb_release-a www.2cto.com The author installed centOS release 5.8 (final) corresponding to all the rpm Package address is: http://centos.mirror.fr.planethoster.net/5.8/os/i386/CentOS/ 2. find the following rpm packages on the page and install them in the following order. 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
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.