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

来源:互联网 发布:java 泛型 t.class 编辑:程序博客网 时间:2024/06/08 04:28

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 foundUnable to find configuration file for plugin product-idConfiguration file /etc/yum/pluginconf.d/subscription-manager.conf not foundUnable to find configuration file for plugin subscription-managerLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileSetting up Install ProcessResolving 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 ResolutionDependencies Resolved===================================================================================================================================== Package                              Arch                        Version                            Repository                 Size=====================================================================================================================================Installing: gcc-c++                              x86_64                      4.4.7-18.el6                       base                      4.7 MInstalling for dependencies: libstdc++-devel                      x86_64                      4.4.7-18.el6                       base                      1.6 MUpdating 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 kTransaction Summary=====================================================================================================================================Install       2 Package(s)Upgrade       5 Package(s)Total download size: 21 MDownloading 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_debugRunning Transaction TestTransaction Test SucceededRunning 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!

之上是安装执行过程,,安装完成!!!