当前位置: 技术问答>linux和unix
Red Hat Enterprise Linux 5下安装gcc出错
来源: 互联网 发布时间:2016-08-01
本文导语: 我下载了5个文件: binutils-2.13.90.0.18-9.i386.rpm glibc-devel-2.3.2-11.9.i386.rpm cpp-3.2.2-5.i386.rpm glibc-kernheaders-2.4-8.10.i386.rpm gcc-3.2.2-5.i386.rpm 按如下顺序进行安装: rpm -ivh binutils-2.13.90.0.18-9.i386.rpm rpm -ivh cpp-3.2.2-5.i386.rpm rpm...
我下载了5个文件:
binutils-2.13.90.0.18-9.i386.rpm
glibc-devel-2.3.2-11.9.i386.rpm
cpp-3.2.2-5.i386.rpm
glibc-kernheaders-2.4-8.10.i386.rpm
gcc-3.2.2-5.i386.rpm
按如下顺序进行安装:
rpm -ivh binutils-2.13.90.0.18-9.i386.rpm
rpm -ivh cpp-3.2.2-5.i386.rpm
rpm -ivh glibc-kernheaders-2.4-8.10.i386.rpm
rpm -ivh glibc-devel-2.3.2-11.9.i386.rpm
rpm -ivh gcc-3.2.2-5.i386.rpm
可是最后安装还是报错:
[root@localhost gcc]#rpm -ivh gcc-3.2.2-5.i386.rpm
warning: gcc-3.2.2-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
cpp = 3.2.2-5 is needed by gcc-3.2.2-5.i386
glibc-devel >= 2.2.90-12 is needed by gcc-3.2.2-5.i386
请问,如何解决?多谢!
binutils-2.13.90.0.18-9.i386.rpm
glibc-devel-2.3.2-11.9.i386.rpm
cpp-3.2.2-5.i386.rpm
glibc-kernheaders-2.4-8.10.i386.rpm
gcc-3.2.2-5.i386.rpm
按如下顺序进行安装:
rpm -ivh binutils-2.13.90.0.18-9.i386.rpm
rpm -ivh cpp-3.2.2-5.i386.rpm
rpm -ivh glibc-kernheaders-2.4-8.10.i386.rpm
rpm -ivh glibc-devel-2.3.2-11.9.i386.rpm
rpm -ivh gcc-3.2.2-5.i386.rpm
可是最后安装还是报错:
[root@localhost gcc]#rpm -ivh gcc-3.2.2-5.i386.rpm
warning: gcc-3.2.2-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
cpp = 3.2.2-5 is needed by gcc-3.2.2-5.i386
glibc-devel >= 2.2.90-12 is needed by gcc-3.2.2-5.i386
请问,如何解决?多谢!
|
GCC的版本太老,建议用YUM直接安装
|
RHEL 可以使用yum 用yum安装吧
前面的包安装确实成功了吗 rpm -qa | grep 包名 看看是否安装好了
也可能还需要别的包 比如glibc-headers libgcc glibc-common等等
http://www.5dlinux.com/article/3/2007/linux_8205.html
前面的包安装确实成功了吗 rpm -qa | grep 包名 看看是否安装好了
也可能还需要别的包 比如glibc-headers libgcc glibc-common等等
http://www.5dlinux.com/article/3/2007/linux_8205.html