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

[复制链接] |主动推送
查看16 | 回复0 | 2024-9-11 14:52:38 | 显示全部楼层 |阅读模式
错误
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++
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则