rpm包安装gcc报错

来源:互联网 发布:ubuntu luvit 编辑:程序博客网 时间:2024/06/05 20:05

CentOS 6.5下使用rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm命令安装GCC时提示以下错误:

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
  1. warning: gcc-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY  
  2. error: Failed dependencies:  
  3.     cloog-ppl >= 0.15 is needed by gcc-4.4.7-4.el6.x86_64  
  4.     cpp = 4.4.7-4.el6 is needed by gcc-4.4.7-4.el6.x86_64  
开始只知道是缺少依赖项,但具体缺少什么没看明白,

使用yum安装的时候都会把依赖项完整的列出来;

后来才看明白,

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
  1. cloog-ppl 需要大于等于 0.15 版本的  
[plain] view plaincopy在CODE上查看代码片派生到我的代码片
  1. cpp 需要 4.4.7-4.el6 版本的  
看懂错误信息就好说了。
[plain] view plaincopy在CODE上查看代码片派生到我的代码片
  1. rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm   
  2. warning: cloog-ppl-0.15.7-1.2.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY  
  3. Preparing...                ########################################### [100%]  
  4.    1:cloog-ppl              ########################################### [100%]  
  5.   
  6. rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm   
  7. warning: cpp-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY  
  8. Preparing...                ########################################### [100%]  
  9.    1:cpp                    ########################################### [100%]  
[plain] view plaincopy在CODE上查看代码片派生到我的代码片
  1. rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm   
  2. warning: gcc-4.4.7-4.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY  
  3. Preparing...                ########################################### [100%]  
  4.    1:gcc                    ########################################### [100%] 
0 0
原创粉丝点击