rhel-server-6.2-i386安装gcc、g++步骤
安装的版本:rhel-server-6.2-i386
RHEL 6.2默认是没有gcc和gcc-c++环境的,而且我也没有$购买正版服务。只能本地安装了,总结方法如下:
上传安装镜像rhel-server-6.2-i386-dvd.iso,然后将镜像文件挂,如/mnt。
1 # cd /media/RHEL_6.2 i386 Disc 1/Packages 2 3 # rpm -ivh glibc-common-2.12-1.47.el6.i686.rpm 4 # rpm -ivh kernel-headers-2.6.32-220.el6.i686.rpm 5 # rpm -ivh libgcc-4.4.6-3.el6.i686.rpm 6 # rpm -ivh glibc-2.12-1.47.el6.i686.rpm 7 # rpm -ivh libgomp-4.4.6-3.el6.i686.rpm 8 # rpm -ivh nscd-2.12-1.47.el6.i686.rpm 9 # rpm -ivh glibc-headers-2.12-1.47.el6.i686.rpm 10 # rpm -ivh glibc-devel-2.12-1.47.el6.i686.rpm 11 # rpm -ivh mpfr-2.4.1-6.el6.i686.rpm 12 # rpm -ivh ppl-0.10.2-11.el6.i686.rpm 13 # rpm -ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm 14 # rpm -ivh cpp-4.4.6-3.el6.i686.rpm 15 # rpm -ivh gcc-4.4.6-3.el6.i686.rpm
注:以上是安装gcc,软件安装顺序不能错。
******************************************
1 # rpm -ivh libstdc++-4.4.6-3.el6.i686.rpm 2 # rpm -ivh libstdc++-devel-4.4.6-3.el6.i686.rpm 3 # rpm -ivh gcc-c++-4.4.6-3.el6.i686.rpm
注:以上是安装gcc-c++