Centos 6.7 Installation gcc-c++ times the following error:
Resolving Dependencies-Running Transaction Check---> Packagegcc-c++.i6860:4.4.7- One.el6 'll be installed--Processing Dependency:libstdc++-devel =4.4.7- One. el6 for Package: gcc-c++-4.4.7- One. el6.i686--Processing DEPENDENCY:GCC =4.4.7- One. el6 for Package: gcc-c++-4.4.7- One. el6.i686-Running Transaction Check---> Packagegcc-c++.i6860:4.4.7- One.el6 'll be installed--Processing DEPENDENCY:GCC =4.4.7- One. el6 for Package: gcc-c++-4.4.7- One. el6.i686---> Packagelibstdc++-devel.i6860:4.4.7- One.el6 'll be installed-finished Dependency resolutionerror: Package: gcc-c++-4.4.7- One. el6.i686 (c6-Media) Requires: gcc =4.4.7- One.El6 installed: gcc-4.4.7- -. el6.i686 (@base) gcc=4.4.4- the.el6 gcc=4.4.7- -.el6 Available: gcc-4.4.7- One. el6.i686 (c6-media) GCC=4.4.7- One.el6 gcc=4.4.4- the.El6 you could try using--skip-broken to work around the problem you could try running: Rpm-va--nofiles--nodigest
Workaround: Remove Gcc,cpp, Libgomp, etc. dependencies first and then reinstall the gcc-c++ directly, so that it automatically installs the correct version of the dependent GCC, CPP, Libgomp:
[Root@localhost~]#Yum Install gcc-c++Loaded Plugins:fastestmirror, Refresh-packagekit,securitysetting up Install processloading mirror speeds from cached Hostfile* C6-media:Resolving Dependencies-Running Transaction Check---> Packagegcc-c++.i6860:4.4.7- One.el6 'll be installed--Processing Dependency:libstdc++-devel =4.4.7- One. el6 for Package: gcc-c++-4.4.7- One. el6.i686--Processing DEPENDENCY:GCC =4.4.7- One. el6 for Package: gcc-c++-4.4.7- One. el6.i686-Running Transaction Check---> Packagegcc.i6860:4.4.7- One.el6 'll be installed--Processing Dependency:libgomp =4.4.7- One. el6 for Package: gcc-4.4.7- One. el6.i686--Processing Dependency:cpp =4.4.7- One. el6 for Package: gcc-4.4.7- One. el6.i686--processing Dependency:libgomp.so.1 for Package: gcc-4.4.7- One. el6.i686---> Packagelibstdc++-devel.i6860:4.4.7- One.el6 'll be installed-Running Transaction Check---> Packagecpp.i6860:4.4.7- One.el6 'll be installed---> Packagelibgomp.i6860:4.4.7- One.el6 'll be installed-finished Dependency resolutiondependencies resolved=============================================================================================================== =========================== PackageArch Version Repository Size=============================================================================================================== ===========================Installing:GCC-c++ i6864.4.7- One. el6 C6-media4.3minstalling forDependenciesCPP i6864.4.7- One. el6 C6-media3.4M gcc i6864.4.7- One. el6 C6-media8.2M Libgomp i6864.4.7- One. el6 C6-media135k LIBSTDC++-devel i6864.4.7- One. el6 C6-media1.6mtransaction Summary=============================================================================================================== ===========================Install5 Package(s) Total Download size: -minstalled Size: +MIs This ok [y/n]:ydownloading Packages:-------------------------------------------------------------------------------------------------------------- ---------------------------- Total +MB/s | -MBxx:xxRunning rpm_check_debugrunning Transaction testtransaction Test succeededrunning Transaction Installing: libstdc++-devel-4.4.7- One. el6.i6861/5Installing: cpp-4.4.7- One. el6.i6862/5Installing: libgomp-4.4.7- One. el6.i6863/5Installing: gcc-4.4.7- One. el6.i6864/5Installing: gcc-c++-4.4.7- One. el6.i6865/5unable toConnectTo Dbus verifying: gcc-c++-4.4.7- One. el6.i6861/5Verifying: libgomp-4.4.7- One. el6.i6862/5Verifying: gcc-4.4.7- One. el6.i6863/5Verifying: libstdc++-devel-4.4.7- One. el6.i6864/5Verifying: cpp-4.4.7- One. el6.i6865/5installed:GCC-c++.i6860:4.4.7- One.el6dependency installed:CPP. i6860:4.4.7- One. el6 gcc.i6860:4.4.7- One. el6 libgomp.i6860:4.4.7- One. el6 libstdc++-devel.i6860:4.4.7- One.El6complete![Root@localhost~]#
You can see that the installation gcc-c++ is successful.
Install gcc-c++ times wrong and original GCC version conflict