标签:style blog http strong os html
切换到安装光盘目录下:
#mount /dev/cdrom /mnt/cdrom
#cd /mnt/cdrom
安装GCC依赖的*rpm程序,必须按照顺序依次执行:
#rpm -ivh kernel-headers-2.6.18-164.el5.i386.rpm
#rpm -ivh compat-glibc-headers-2.3.4-2.26.i386.rpm
#rpm -ivh compat-glibc-2.3.4-2.26.i386.rpm
#rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
#rpm -ivh compat-libf2c-34-3.4.6-4.i386.rpm
#rpm -ivh compat-libgcc-296-2.96-138.i386.rpm
#rpm -ivh cpp-4.1.2-46.el5.i386.rpm
#rpm -ivh glibc-headers-2.5-42.i386.rpm
#rpm -ivh glibc-devel-2.5-42.i386.rpm
#rpm -ivh libgomp-4.4.0-6.el5.i386.rpm
#rpm -ivh libstdc++-devel-4.1.2-46.el5.i386.rpm
#rpm -ivh gcc-4.1.2-46.el5.i386.rpm
#rpm -ivh compat-gcc-34-3.4.6-4.i386.rpm
#rpm -ivh compat-gcc-34-c++-3.4.6-4.i386.rpm
G++的安装:
首先确保之前的包已经安装完毕,之后进行如下操作:
#rpm -ivh libstdc++-4.1.1-52.el5.i386.rpm
#rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm
安装完成后,系统就可以运行GCC和G++的命令了。
当然,最简单的方式还是配个yum,这样,你就可以从指定的服务器自动下载RPM包并且安装,可以自动处理依赖性关系,并且一次安装所有依赖的软体包,无须繁琐地一次次下载、安装。
<FROM:http://www.cnblogs.com/qunyang/archive/2011/11/27/2264997.html>
RedHat下GCC及G++的安装,布布扣,bubuko.com
标签:style blog http strong os html
原文地址:http://www.cnblogs.com/rusking/p/3835300.html