Erlo

gcc 手动安装

时间:2019-03-15 14:38   阅读:24次   来源:博客园页面报错

点赞 打赏

×打赏

支付宝

微信

由于公司内部服务器没有联通外网,只能苦逼的手动安装gcc(自带的版本太老)

 

rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm 
rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm 
rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm 
rpm -ivh cpp-4.4.7-4.el6.x86_64.rpm 
rpm -ivh kernel-headers-2.6.32-431.el6.x86_64.rpm 
rpm -ivh glibc-headers-2.12-1.132.el6.x86_64.rpm 
rpm -ivh glibc-devel-2.12-1.132.el6.x86_64.rpm 
rpm -ivh gcc-4.4.7-4.el6.x86_64.rpm 
rpm -ivh libstdc++-devel-4.4.7-4.el6.x86_64.rpm 
rpm -ivh gcc-c++-4.4.7-4.el6.x86_64.rpm 

 

安装cpp时碰到问题

warning: gcc-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

error: Failed dependencies:

cpp = 4.4.7-17.el6 is needed by gcc-4.4.7-17.el6.x86_64

 

查看历史安装log

warning: cpp-4.4.7-17.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

file /usr/bin/cpp from install of cpp-4.4.7-17.el6.x86_64 conflicts with file from package cpp-4.4.6-4.el6.x86_64

file /usr/libexec/gcc/x86_64-redhat-linux/4.4.4/cc1 from install of cpp-4.4.7-17.el6.x86_64 conflicts with file from package cpp-4.4.6-4.el6.x86_64

file /usr/share/man/man1/cpp.1.gz from install of cpp-4.4.7-17.el6.x86_64 conflicts with file from package cpp-4.4.6-4.el6.x86_64

 

发现cpp安装有冲突,卸载cpp重装

rpm -e cpp

 

继续后续安装....ok

 

下一篇:PHP通过_call实现多继承

评论留言

还没有评论留言,赶紧来抢楼吧~~

Erlo大厅()

* 这里是“吐槽厅”,所有人可看,只保留当天信息。

  • Erlo.vip2019-05-24 14:44:41Hello、欢迎使用吐槽厅,这里是个吐槽的地方。
  • 首页 笔记分享 案例展示 ERLO 搜索
    鼠标试试
    返回顶部