您的位置:首页 > 编程语言 > C语言/C++

No package gcc-c++ available. Error: Nothing to do

2017-07-31 19:24 519 查看
No package gcc-c++ available. Error: Nothing to do

没有可用的软件包gcc-c + +。错误:无事可做

换源之后安装gcc-c++软件,换源转自http://blog.csdn.net/echocourage/article/details/76425210

**[root@localhost /]# yum install -y gcc-c++**
Configuration file /etc/yum/pluginconf.d/product-id.conf not found
Unable to find configuration file for plugin product-id
Configuration file /etc/yum/pluginconf.d/subscription-manager.conf not found
Unable to find configuration file for plugin subscription-manager
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.4.7-18.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-18.el6 for package: gcc-c++-4.4.7-18.el6.x86_64
--> Processing Dependency: libstdc++ = 4.4.7-18.el6 for package: gcc-c++-4.4.7-18.el6.x86_64
--> Processing Dependency: gcc = 4.4.7-18.el6 for package: gcc-c++-4.4.7-18.el6.x86_64
--> Running transaction check
---> Package gcc.x86_64 0:4.4.7-4.el6 will be updated
---> Package gcc.x86_64 0:4.4.7-18.el6 will be an update
--> Processing Dependency: libgomp = 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.x86_64
--> Processing Dependency: cpp = 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.x86_64
--> Processing Dependency: libgcc >= 4.4.7-18.el6 for package: gcc-4.4.7-18.el6.x86_64
---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be updated
---> Package libstdc++.x86_64 0:4.4.7-18.el6 will be an update
---> Package libstdc++-devel.x86_64 0:4.4.7-18.el6 will be installed
--> Running transaction check
---> Package cpp.x86_64 0:4.4.7-4.el6 will be updated
---> Package cpp.x86_64 0:4.4.7-18.el6 will be an update
---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgcc.x86_64 0:4.4.7-18.el6 will be an update
---> Package libgomp.x86_64 0:4.4.7-4.el6 will be updated
---> Package libgomp.x86_64 0:4.4.7-18.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================================================
Package                              Arch                        Version                            Repository                 Size
=====================================================================================================================================
Installing:
gcc-c++                              x86_64                      4.4.7-18.el6                       base                      4.7 M
Installing for dependencies:
libstdc++-devel                      x86_64                      4.4.7-18.el6                       base                      1.6 M
Updating for dependencies:
cpp                                  x86_64                      4.4.7-18.el6                       base                      3.7 M
gcc                                  x86_64                      4.4.7-18.el6                       base                       10 M
libgcc                               x86_64                      4.4.7-18.el6                       base                      103 k
libgomp                              x86_64                      4.4.7-18.el6                       base                      134 k
libstdc++                            x86_64                      4.4.7-18.el6                       base                      295 k

Transaction Summary
=====================================================================================================================================
Install       2 Package(s)
Upgrade       5 Package(s)

Total download size: 21 M
Downloading Packages:
(1/7): cpp-4.4.7-18.el6.x86_64.rpm                                                                            | 3.7 MB     00:02
(2/7): gcc-4.4.7-18.el6.x86_64.rpm                                                                            |  10 MB     00:05
(3/7): gcc-c++-4.4.7-18.el6.x86_64.rpm                                                                        | 4.7 MB     00:02
(4/7): libgcc-4.4.7-18.el6.x86_64.rpm                                                                         | 103 kB     00:00
(5/7): libgomp-4.4.7-18.el6.x86_64.rpm                                                                        | 134 kB     00:00
(6/7): libstdc++-4.4.7-18.el6.x86_64.rpm                                                                      | 295 kB     00:00
(7/7): libstdc++-devel-4.4.7-18.el6.x86_64.rpm                                                                | 1.6 MB     00:00
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                1.7 MB/s |  21 MB     00:12
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating   : libgcc-4.4.7-18.el6.x86_64                                                                                       1/12
Updating   : libstdc++-4.4.7-18.el6.x86_64                                                                                    2/12
Installing : libstdc++-devel-4.4.7-18.el6.x86_64                                                                              3/12
Updating   : cpp-4.4.7-18.el6.x86_64                                                                                          4/12
Updating   : libgomp-4.4.7-18.el6.x86_64                                                                                      5/12
Updating   : gcc-4.4.7-18.el6.x86_64                                                                                          6/12
Installing : gcc-c++-4.4.7-18.el6.x86_64                                                                                      7/12
Cleanup    : gcc-4.4.7-4.el6.x86_64                                                                                           8/12
Cleanup    : libstdc++-4.4.7-4.el6.x86_64                                                                                     9/12
Cleanup    : libgcc-4.4.7-4.el6.x86_64                                                                                       10/12
Cleanup    : cpp-4.4.7-4.el6.x86_64                                                                                          11/12
Cleanup    : libgomp-4.4.7-4.el6.x86_64                                                                                      12/12
Verifying  : libstdc++-devel-4.4.7-18.el6.x86_64                                                                              1/12
Verifying  : libgomp-4.4.7-18.el6.x86_64                                                                                      2/12
Verifying  : cpp-4.4.7-18.el6.x86_64                                                                                          3/12
Verifying  : gcc-4.4.7-18.el6.x86_64                                                                                          4/12
Verifying  : gcc-c++-4.4.7-18.el6.x86_64                                                                                      5/12
Verifying  : libgcc-4.4.7-18.el6.x86_64                                                                                       6/12
Verifying  : libstdc++-4.4.7-18.el6.x86_64                                                                                    7/12
Verifying  : cpp-4.4.7-4.el6.x86_64                                                                                           8/12
Verifying  : libgomp-4.4.7-4.el6.x86_64                                                                                       9/12
Verifying  : libgcc-4.4.7-4.el6.x86_64                                                                                       10/12
Verifying  : gcc-4.4.7-4.el6.x86_64                                                                                          11/12
Verifying  : libstdc++-4.4.7-4.el6.x86_64                                                                                    12/12

Installed:
gcc-c++.x86_64 0:4.4.7-18.el6

Dependency Installed:
libstdc++-devel.x86_64 0:4.4.7-18.el6

Dependency Updated:
cpp.x86_64 0:4.4.7-18.el6          gcc.x86_64 0:4.4.7-18.el6    libgcc.x86_64 0:4.4.7-18.el6    libgomp.x86_64 0:4.4.7-18.el6
libstdc++.x86_64 0:4.4.7-18.el6

Complete!


之上是安装执行过程,,安装完成!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  yum
相关文章推荐