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

报错信息

[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 problem
 You 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]# 

支持报错问题解决
 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 9
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 9
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

wellnw

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值