报错信息

[root@localhost SPECS]# yum -y install devtoolset-3-gcc
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile* base: mirror.compevo.com* centos-sclo-rh: mirrors.163.com* centos-sclo-sclo: mirrors.163.com* elrepo: mirror.rackspace.com* extras: repos.lax.quadranet.com* updates: linux.mirrors.es.net
Resolving Dependencies
--> Running transaction check
---> Package devtoolset-3-gcc.x86_64 0:4.9.2-6.el6 will be installed
--> Processing Dependency: devtoolset-3-binutils >= 2.22.52.0.1 for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Processing Dependency: devtoolset-3-runtime for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Processing Dependency: libgmp.so.3()(64bit) for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Processing Dependency: libmpfr.so.1()(64bit) for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Running transaction check
---> Package devtoolset-3-binutils.x86_64 0:2.24-18.el6 will be installed
---> Package devtoolset-3-gcc.x86_64 0:4.9.2-6.el6 will be installed
--> Processing Dependency: libgmp.so.3()(64bit) for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Processing Dependency: libmpfr.so.1()(64bit) for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
---> Package devtoolset-3-runtime.x86_64 0:3.1-12.el6 will be installed
--> Finished Dependency Resolution
Error: Package: devtoolset-3-gcc-4.9.2-6.el6.x86_64 (copr:copr.fedorainfracloud.org:rhscl:devtoolset-3)Requires: libmpfr.so.1()(64bit)
Error: Package: devtoolset-3-gcc-4.9.2-6.el6.x86_64 (copr:copr.fedorainfracloud.org:rhscl:devtoolset-3)Requires: libgmp.so.3()(64bit)You could try using --skip-broken to work around the problemYou could try running: rpm -Va --nofiles --nodigest

问题分析

缺少libmpfr.so.1()(64bit)和libgmp.so.3()(64bit)依赖包

解决方案

下载软件包

下载地址

compat-libgmp-4.3.1-1.sl7.x86_64.rpm - Google 云端硬盘https://drive.google.com/file/d/0B7S255p3kFXNZFJDdWtkV3RyZTA/view?resourcekey=0-kiyAPYsJVyE1Eq0oLz_T4Q

compat-libmpfr-2.4.1-1.sl7.x86_64.rpm - Google 云端硬盘https://drive.google.com/file/d/0B7S255p3kFXNV0FoOVlPemRBS0k/view?resourcekey=0-pr7SOR2awpDtl7ZnrHmQrg

安装compat-libgmp-4.3.1-1.sl7.x86_64.rpm

[root@localhost w0412]# yum install compat-libgmp-4.3.1-1.sl7.x86_64.rpm 
Loaded plugins: fastestmirror, langpacks
Examining compat-libgmp-4.3.1-1.sl7.x86_64.rpm: compat-libgmp-4.3.1-1.sl7.x86_64
Marking compat-libgmp-4.3.1-1.sl7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package compat-libgmp.x86_64 0:4.3.1-1.sl7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package          Arch      Version         Repository                            Size
=======================================================================================
Installing:
 compat-libgmp    x86_64    4.3.1-1.sl7     /compat-libgmp-4.3.1-1.sl7.x86_64    564 k

Transaction Summary
=======================================================================================
Install  1 Package

Total size: 564 k
Installed size: 564 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : compat-libgmp-4.3.1-1.sl7.x86_64                                    1/1 
  Verifying  : compat-libgmp-4.3.1-1.sl7.x86_64                                    1/1

Installed:
  compat-libgmp.x86_64 0:4.3.1-1.sl7

Complete!

安装compat-libmpfr-2.4.1-1.sl7.x86_64.rpm

[root@localhost w0412]# yum install compat-libmpfr-2.4.1-1.sl7.x86_64.rpm 
Loaded plugins: fastestmirror, langpacks
Examining compat-libmpfr-2.4.1-1.sl7.x86_64.rpm: compat-libmpfr-2.4.1-1.sl7.x86_64
Marking compat-libmpfr-2.4.1-1.sl7.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package compat-libmpfr.x86_64 0:2.4.1-1.sl7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package          Arch     Version          Repository                            Size
=======================================================================================
Installing:
 compat-libmpfr   x86_64   2.4.1-1.sl7      /compat-libmpfr-2.4.1-1.sl7.x86_64   369 k

Transaction Summary
=======================================================================================
Install  1 Package

Total size: 369 k
Installed size: 369 k
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : compat-libmpfr-2.4.1-1.sl7.x86_64                                   1/1 
  Verifying  : compat-libmpfr-2.4.1-1.sl7.x86_64                                   1/1

Installed:
  compat-libmpfr.x86_64 0:2.4.1-1.sl7

Complete!

安装devtoolset-3-gcc

root@localhost w0412]# yum install devtoolset-3-gcc
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * centos-sclo-rh: mirrors.163.com
 * centos-sclo-sclo: mirrors.163.com
 * elrepo: mirror.rackspace.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package devtoolset-3-gcc.x86_64 0:4.9.2-6.el6 will be installed
--> Processing Dependency: devtoolset-3-binutils >= 2.22.52.0.1 for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Processing Dependency: devtoolset-3-runtime for package: devtoolset-3-gcc-4.9.2-6.el6.x86_64
--> Running transaction check
---> Package devtoolset-3-binutils.x86_64 0:2.24-18.el6 will be installed
---> Package devtoolset-3-runtime.x86_64 0:3.1-12.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package    Arch   Version     Repository                                         Size
=======================================================================================
Installing:
 devtoolset-3-gcc
            x86_64 4.9.2-6.el6 copr:copr.fedorainfracloud.org:rhscl:devtoolset-3  24 M
Installing for dependencies:
 devtoolset-3-binutils
            x86_64 2.24-18.el6 copr:copr.fedorainfracloud.org:rhscl:devtoolset-3 5.1 M
 devtoolset-3-runtime
            x86_64 3.1-12.el6  copr:copr.fedorainfracloud.org:rhscl:devtoolset-3 1.1 M

Transaction Summary
=======================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 30 M
Installed size: 69 M
Is this ok [y/d/N]: y
Downloading packages:
warning: /var/cache/yum/x86_64/7/copr:copr.fedorainfracloud.org:rhscl:devtoolset-3/packages/devtoolset-3-binutils-2.24-18.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 094d442c: NOKEY
Public key for devtoolset-3-binutils-2.24-18.el6.x86_64.rpm is not installed
(1/3): devtoolset-3-binutils-2.24-18.el6.x86_64.rpm             | 5.1 MB  00:00:06     
(2/3): devtoolset-3-runtime-3.1-12.el6.x86_64.rpm               | 1.1 MB  00:00:01     
(3/3): devtoolset-3-gcc-4.9.2-6.el6.x86_64.rpm                  |  24 MB  00:00:13     
---------------------------------------------------------------------------------------
Total                                                     2.2 MB/s |  30 MB  00:13     
Retrieving key from https://download.copr.fedorainfracloud.org/results/rhscl/devtoolset-3/pubkey.gpg
Importing GPG key 0x094D442C:
 Userid     : "rhscl_devtoolset-3 (None) <rhscl#devtoolset-3@copr.fedorahosted.org>"
 Fingerprint: 143e 840e c0d0 ad21 e646 cdd8 fbce 6502 094d 442c
 From       : https://download.copr.fedorainfracloud.org/results/rhscl/devtoolset-3/pubkey.gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : devtoolset-3-runtime-3.1-12.el6.x86_64                              1/3 
  Installing : devtoolset-3-binutils-2.24-18.el6.x86_64                            2/3 
  Installing : devtoolset-3-gcc-4.9.2-6.el6.x86_64                                 3/3 
  Verifying  : devtoolset-3-binutils-2.24-18.el6.x86_64                            1/3 
  Verifying  : devtoolset-3-runtime-3.1-12.el6.x86_64                              2/3 
  Verifying  : devtoolset-3-gcc-4.9.2-6.el6.x86_64                                 3/3

Installed:
  devtoolset-3-gcc.x86_64 0:4.9.2-6.el6

Dependency Installed:
  devtoolset-3-binutils.x86_64 0:2.24-18.el6  devtoolset-3-runtime.x86_64 0:3.1-12.el6

Complete!
[root@localhost w0412]#

支持报错问题解决

Centos升级gcc4.9 yum install devtoolset-3-gcc 出现 Requires: libmpfr.so.1()(64bit)和libgmp.so.3()(64bit)相关推荐

  1. Centos升级gcc4.4.7升级gcc4.8手记

    本博客来自:http://www.mudbest.com/centos%E5%8D%87%E7%BA%A7gcc4-4-7%E5%8D%87%E7%BA%A7gcc4-8%E6%89%8B%E8%AE ...

  2. linux centos升级php_CentOS使用yum升级php到最新版本

    CentOS的php版本默认为5.1.6,然后在5.2.9版本之前的的php都存在一个漏洞,但是目前网上很多地方都无法使用yum update php*升级到最新版本,比较常见的是升级到5.2.6版本 ...

  3. 在CentOS 6.8 x86_64上利用devtoolset搭建GCC 4.9.2和5.3.1开发环境

    下面是在CentOS 6.8 Mac虚拟机上亲自实践的结果: 因为国内防火墙的问题,原有源无法成功安装,需要在下面的文件中更换为国内的源 vim /etc/yum.repos.d/CentOS-SCL ...

  4. centos 7升级内核,yum方式升级内核,编译方式升级内核

    centos 7升级内核 1.centos 7升级内核(从3.10到5.17) 1.yum方式升级内核 1.1 用epel源升级内核 1.2 设置内核启动顺序 1.3 重启系统,查看内核版本是否升级 ...

  5. linux篇【3】:Linux 环境基础开发工具yum,vim,gcc,makefile,git

    目录 一.Linux 软件包管理器 yum 1.什么是软件包 2.centos 7中安装形式 3.yum安装好处: 4.yum工具的常用选项 (1)yum list | grep sl 软件包信息介绍 ...

  6. centOS 6.5 yum升级 gcc4.8 然后又退回来4.4

    CentOS 6.5 用了很多年了,一直舍不得省7 . 由于要用到 c++ 11 ,所以决定升级一下. 为了省事我选择用 yum 方式升级,结果最后还是不能用,差点搞坏,这是真机,重装麻烦了. get ...

  7. yum更新php版本,CentOS 5.4 通过yum升级PHP到5.3版本的两种方法

    CentOS5.4的php版本默认为5.1.6,然后在5.2.9版本之前的的php都存在一个漏洞,但是目前网上很多地方都无法使用yum update php*升级到5.3,经过搜索国外资料,现在终于找 ...

  8. centos 升级php5.5_CentOS 5.x 系统yum 升级php到5.2.x的方法(测试可用)

    在用的centos 5.4系统中,目前提供php版本为5.1.6,通过以下方法升级PHP到5.2比较方便. 先将以下地址导入: 复制代码 代码示例: # rpm --import http://www ...

  9. yum php 降级 5.3,CentOS 5.3 通过yum升级php的方法

    方法一(PHP5.3): 转自:开源ISPCP社区    http://www.ispcpcn.com/article/13/ CentOS5.3的php版本默认为5.1.6,然后在5.2.9版本之前 ...

最新文章

  1. 服务器挖chia用什么系统,Chia是什么?Chia挖矿服務器配置
  2. 浏览器history操作实现一些功能
  3. Vue的组件为什么要export default
  4. 配件都包括什么_婚礼婚庆服务都包括什么
  5. hdu 4160 Dolls 匈牙利算法求最大匹配
  6. 计算机gt的使用方法,旗舰级综合效果器 BOSS GT-1000使用宝典(二) | 基础操作
  7. mysql数据库管理维护_(转)Mysql数据库管理 表的维护
  8. 由浅至深 谈谈.NET混淆原理 (四) -- 反混淆(原理 + 工具篇)
  9. 启用属性,索引和存储的用途是什么?
  10. 【Kafka】Flink 消费 kafka 部分 分区 一直不提交 offset
  11. java中ares框架_ARES辅助开发工具-用户手册.doc
  12. 安裝MAVEN插件(轉)
  13. 梅花传播业大展:Focussend将精准营销融入个性化邮件
  14. shell基础之综合练习
  15. css 设置浏览器最小宽度
  16. 数据结构 哈希表设计
  17. SpringBoot自动装配
  18. 计算机英语单词练习一
  19. 中国电信最快apn里面的服务器,电信4g网速最快的apn接入点(电信4g承载系统哪个快)...
  20. Mac电脑使用:您的安全性偏好设置仅允许安装来自App Store和被认可的开发者的应用(解决方法)

热门文章

  1. 没有酵母没有老面怎样发面
  2. 软件系统:兼容性问题汇总
  3. 航运船公司人工智能AI产品成熟化标准化规模应用,全球港航人工智能/集装箱人工智能领军者CIMC中集飞瞳,打造国际航运智能化标杆
  4. 解除.netMVC4上传文件不能超过30M的限制
  5. 外企面试成功秘笈(外企HR亲授)
  6. WiFi-802.11 协商速率表
  7. 2、如何从ST官网获取标准库及相关芯片资料
  8. 我的世界手机版修改服务器ip,我的世界手机版怎么建立服务器ip
  9. 旋转视频画面方向,多角度旋转的两种方法
  10. 户外运动耳机推荐、十大户外运动耳机品牌推荐排名清单