发新话题
 搜藏 打印 该页面添加到 Mister Wong

===升级gcc遇到不解的问题,大家帮忙看看===

===升级gcc遇到不解的问题,大家帮忙看看===

RH 9.0系统,升级gcc到gcc-4.1.0-0.9,出现了不解的问题

如下:

[root@localhost usershare]# rpm -Uivh --test  gcc*.i386.rpm
error: Failed dependencies:
        binutils >= 2.16.91.0.3-1 is needed by gcc-4.1.0-0.9
        cpp = 4.1.0-0.9 is needed by gcc-4.1.0-0.9
        libc.so.6(GLIBC_2.4) is needed by gcc-4.1.0-0.9
        libgcc >= 4.1.0-0.9 is needed by gcc-4.1.0-0.9
        libgomp = 4.1.0-0.9 is needed by gcc-4.1.0-0.9
        gcc = 3.2.2-5 is needed by (installed) gcc-g77-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-java-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-gnat-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-c++-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-objc-3.2.2-5
[root@localhost usershare]#


libc.so.6(GLIBC_2.4) is needed by gcc-4.1.0-0.9   为什么有这个呢?
我的系统不是安装了吗?看下面:

[root@localhost usershare]# rpm -q glibc
glibc-2.3.2-11.9
[root@localhost usershare]# rpm -ql glibc-2.3.2-11.9 | grep libc.so
/lib/i686/libc.so.6
/lib/libc.so.6
/lib/tls/libc.so.6
[root@localhost usershare]#

咋了?!不解。。。。

还有这段:
        gcc = 3.2.2-5 is needed by (installed) gcc-g77-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-java-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-gnat-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-c++-3.2.2-5
        gcc = 3.2.2-5 is needed by (installed) gcc-objc-3.2.2-5

是不是要先把系统原来的gcc-3.2.2-5删了?  rpm的-U选项不是可以自动升级吗?


路过的帮俺看看怎么回事       ///////谢谢////////

本文由GOD_Father 发布于Linuxsky 论坛,网址:http://bbs.linuxsky.org/thread-1867-1-1.html

相关主题
====================
夜,给了我黑色的眼睛;
我却用它来寻找光明,
寻找光明……

zyl508@163.com
====================

TOP

你确认这个包是for rh9的?

TOP

2楼的朋友所说的包是指哪个?

gcc的包好象没有特定rh的,
glibc的包是系统光盘自带的,应该是for rh的
====================
夜,给了我黑色的眼睛;
我却用它来寻找光明,
寻找光明……

zyl508@163.com
====================

TOP

发新话题