.
分类: LINUX
2011-11-30 00:27:30
检查安装包:执行命令: $rpm -qa gcc-c++*
安装rmp文件包:执行命令: $rpm -ivh <文件包名>
Linux g++安装步骤:
从安装光盘中获取需要的软件包
按顺序检查安装依赖包:
kernel-headers-2.6.18-128.el5.x86_64.rpm
compat-glibc-headers-2.3.4-2.26.x86_64.rpm
compat-glibc-2.3.4-2.26.x86_64.rpm
compat-libstdc++-33-3.2.3-61.x86_64.rpm
compat-libf2c-34-3.4.6-4.x86_64.rpm
compat-libgcc-296-2.96-138.i386.rpm
cpp-4.1.2-44.el5.x86_64.rpm
glibc-headers-2.5-34.x86_64.rpm
glibc-devel-2.5-34.x86_64.rpm
libgomp-4.3.2-7.el5.x86_64.rpm
libstdc++-devel-4.1.2-44.el5.x86_64.rpm
gcc-4.1.2-44.el5.x86_64.rpm
compat-gcc-34-3.4.6-4.x86_64.rpm
compat-gcc-34-c++-3.4.6-4.x86_64.rpm
rpm -ivh libstdc++43-devel-4.3.2-7.el5.x86_64.rpm
rpm -ivh gcc-c++-4.1.2-44.el5.x86_64.rpm
方法2:
配置yum,从指定服务器自动下载RPM包并安装,可以自动处理依赖关系,并且一次安装所有的依赖的软件包,无需一次次下载和安装。