rpm -ivh gcc4-c++-4.1.2-14.EL4.x86_64.rpm(安装命令)
warning: gcc4-c++-4.1.2-14.EL4.x86_64.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error:Failed dependencies:
gcc-c++ >= 3.4.4-2 is needed by gcc4-c++-4.1.2-14.EL4.x86_64
gcc4 = 4.1.2-14.EL4 is needed by gcc4-c++-4.1.2-14.EL4.x86_64
libstdc++-devel = 3.4.3 is needed by gcc4-c++-4.1.2-14.EL4.x86_64
Suggested resolutions:
/Var/spool/up2dategcc-c++-3.4.6-9.x86_64.rpm
/Var/spool/up2dategcc4-4.1.2-14.EL4.x86_64.rpm
/Var/spool/up2datelibstdc++-devel-3.4.6-9.x86_64.rpm
xlotz 于 2010-12-16 14:36:48发表:
还是使用YUM 比较好,
直接 #yum install gcc* 就能够帮你解决GCC相关的包依赖问题
yhzm1314 于 2010-12-09 23:25:09发表:
简单的说,你在安装GCC时缺少依赖的软件包,错误提示已经很说得很明白了
yhzm1314 于 2010-12-09 23:02:55发表:
如果没有特殊要求,建议用命令从软件源里安装。
下次提问时请把你所使用的版本说清楚,这样别人才能回答你。