redhat linux5.5 安装gcc 
挂载iso文件 /media/iso目录中,按顺序安装
[root@localhost ~]# rpm -ivh /media/iso/Server/kernel-headers-2.6.18-194.el5.i386.rpm
[root@localhost ~]#rpm -ivh /media/iso/Server/glibc-headers-2.5-49.i386.rpm
[root@localhost ~]# rpm -ivh /media/iso/Server/glibc-devel-2.5-49.i386.rpm
[root@localhost ~]# rpm -ivh /media/iso/Server/libgomp-4.4.0-6.el5.i386.rpm
[root@localhost ~]# rpm -ivh /media/iso/Server/gcc-4.1.2-48.el5.i386.rpm
测试: