[root@rhel5 Server]# rpm -ivh kernel-headers-2.6.18-53.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh glibc-headers-2.5-18.i386.rpm
[root@rhel5 Server]# rpm -ivh glibc-devel-2.5-18.i386.rpm
[root@rhel5 Server]# rpm -ivh libgomp-4.1.2-14.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh gcc-4.1.2-14.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh libstdc++-devel-4.1.2-14.el5.i386.rpm
[root@rhel5 Server]# rpm -ivh gcc-c++-4.1.2-14.el5.i386.rpm
libcap-devel-1.10-26.i386.rpm
 

RHEL5下安装GCC4.1.2所需要的rpm包
gcc-4.1.2-14.el5.i386.rpm
gcc-c++-4.1.2-14.el5.i386.rpm
glibc-devel-2.5-18.i386.rpm
glibc-headers-2.5-18.i386.rpm
kernel-headers-2.6.18-53.el5.i386.rpm
libgomp-4.1.2-14.el5.i386.rpm
libstdc++-4.1.2-14.el5.i386.rpm
libstdc++-devel-4.1.2-14.el5.i386.rpm