When installing the gcc compiler in CentOS today is a network task assigned by the instructor, I found that I forgot to check the C language installation option when installing CentOS, leading to the failure to directly use the gcc-o command. Then, if you want to use YUM to connect to the network to install gcc in the dormitory, you will find that bandwidth sharing... when installing the gcc compiler in CentOS today is a network task assigned by the instructor, I found that I forgot to check the C language installation option when installing CentOS, leading to the failure to directly use the gcc-o command. Then, I tried to use YUM to connect to the network to install gcc in the dormitory, and found that the broadband sharing function was forbidden by the teachers of the network management center ...... (It is really hard to find the RPM required for gcc installation in ISO.) I will not talk much about it. start to install gcc manually. First, place the CentOS ISO image file or cd in the optical drive, and then use the device as the first controller to log on to cd/media/CentOS_5.5_Final/CentOS as the ROOT user and press enter (I use CentOS_5.5, if you use another version or another linux system, you need to find the corresponding RPM Package in ISO. The first name of the package is the same, but the version number follows, that is, the numbers may be different.) note that the installation sequence cannot be incorrect, so install them in the following order: rpm-ivh cpp-4.1.2-48.el5.i386.rpm carriage return rpm-ivh kernel-headers-2.6.18-194.el5.i386.rpm carriage return rpm-ivh glibc-headers-2.5-49.el5.i386.rpm carriage return rpm-ivh glibc-devel-2.5-49.el5.i386.rpm carriage return rpm-ivh libgom P-4.4.0-6.el5.i386.rpm press enter rpm-ivh gcc-4.1.2-48.el5.i386.rpm press enter installation is complete, you can use gcc-v to view your own version number, it indicates that the installation is successful. This is the most successful and complete method for manually installing gcc.
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.