报错信息
[root@localhost SPECS]# yum -y install devtoolset-3-gcc Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile* base: * centos-sclo-rh: * centos-sclo-sclo: * elrepo: * extras: repos.* updates: linux.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 ResolutionError: Package: devtoolset-3-gcc-4.9.2-6.el6.x86_64 (copr::rhscl:devtoolset-3)Requires: libmpfr.so.1()(64bit)Error: Package: devtoolset-3-gcc-4.9.2-6.el6.x86_64 (copr::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 云端硬盘/file/d/0B7S255p3kFXNZFJDdWtkV3RyZTA/view?resourcekey=0-kiyAPYsJVyE1Eq0oLz_T4Q
compat-libmpfr-2.4.1-1.sl7.x86_64.rpm - Google 云端硬盘/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
=======================================================================================
PackageArch VersionRepository 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
=======================================================================================
PackageArch VersionRepository 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:
* centos-sclo-rh:
* centos-sclo-sclo:
* elrepo:
* extras:
* updates:
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::rhscl:devtoolset-3 24 M
Installing for dependencies:
devtoolset-3-binutils
x86_64 2.24-18.el6 copr::rhscl:devtoolset-3 5.1 M
devtoolset-3-runtime
x86_64 3.1-12.el6 copr::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::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./results/rhscl/devtoolset-3/pubkey.gpg
Importing GPG key 0x094D442C:
Userid : "rhscl_devtoolset-3 (None) <rhscl#devtoolset-3@>"
Fingerprint: 143e 840e c0d0 ad21 e646 cdd8 fbce 6502 094d 442c
From : https://download./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_641/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_642/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]#
支持报错问题解决