无人岛屿颈 发表于 2024-9-11 14:52:38

云服务器CentOS 6.x 安装 gcc-c++ 与原有版本冲突解决

错误
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i686 0:4.4.7-11.el6 will be installed
--> PRocessing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.i686
--> Processing Dependency: gcc = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.i686
--> Running transaction check
---> Package gcc-c++.i686 0:4.4.7-11.el6 will be installed
--> Processing Dependency: gcc = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.i686
---> Package libstdc++-devel.i686 0:4.4.7-11.el6 will be installed
--> Finished Dependency Resolution
Error: Package: gcc-c++-4.4.7-11.el6.i686 (c6-media)
Requires: gcc = 4.4.7-11.el6
Installed: gcc-4.4.7-16.el6.i686 (@base)
gcc = 4.4.4-15.el6
gcc = 4.4.7-16.el6
Available: gcc-4.4.7-11.el6.i686 (c6-media)
gcc = 4.4.7-11.el6
gcc = 4.4.4-15.el6
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest解决
将 gcc,cpp, libgomp 等等依赖先删除掉,然后重新直接安装 gcc-c++,让其自动安装它的正确版本的依赖的 gcc, cpp, libgomp
yum remove gcc cpp libgomp yum install gcc-c++
页: [1]
查看完整版本: 云服务器CentOS 6.x 安装 gcc-c++ 与原有版本冲突解决