1.需要的RPM包
compat-gcc-34-3.4.6-4.i386.rpm
compat-gcc-34-c++-3.4.6-4.i386.rpm
cpp-4.1.2-42.el5.i386.rpm
gcc-4.1.2-42.el5.i386.rpm
gcc-c++-4.1.2-42.el5.i386.rpm
gcc-gnat-4.1.2-42.el5.i386.rpm
gcc-java-4.1.2-42.el5.i386.rpm
gcc-objc-4.1.2-42.el5.i386.rpm
glibc-devel-2.5-24.i386.rpm
glibc-headers-2.5-24.i386.rpm
glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
libgcc-4.1.2-42.el5.i386.rpm
说明:
glibc-kernheaders-2.4-9.1.98.EL.i386.rpm 这个包可能需要从网上下载
地址:https://files.cnblogs.com/rooney/glibc-kernheaders-2.4-9.1.98.EL.i386.rar
其他的包都可以在安装光盘的CentOS目录下找到
2.安装顺序(一定要按照这个循序)
rpm -ivh cpp-4.1.2-42.el5.i386.rpm
rpm -ivh glibc-kernheaders-2.4-9.1.98.EL.i386.rpm
rpm -ivh glibc-headers-2.5-24.i386.rpm
rpm -ivh glibc-devel-2.5-24.i386.rpm
rpm -ivh libgomp-4.1.2-42.el5.i386.rpm
rpm -ivh gcc-4.1.2-42.el5.i386.rpm