安装 gcc-c++ 时报错和原有 gcc 版本冲突
Centos 6.7 安装 gcc-c++时报下面的错误:
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i686 :4.4.-.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.-.el6 for package: gcc-c++-4.4.-.el6.i686
--> Processing Dependency: gcc = 4.4.-.el6 for package: gcc-c++-4.4.-.el6.i686
--> Running transaction check
---> Package gcc-c++.i686 :4.4.-.el6 will be installed
--> Processing Dependency: gcc = 4.4.-.el6 for package: gcc-c++-4.4.-.el6.i686
---> Package libstdc++-devel.i686 :4.4.-.el6 will be installed
--> Finished Dependency Resolution
Error: Package: gcc-c++-4.4.-.el6.i686 (c6-media)
Requires: gcc = 4.4.-.el6
Installed: gcc-4.4.-.el6.i686 (@base)
gcc = 4.4.-.el6
gcc = 4.4.-.el6
Available: gcc-4.4.-.el6.i686 (c6-media)
gcc = 4.4.-.el6
gcc = 4.4.-.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:
[root@localhost ~]# yum install gcc-c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* c6-media:
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i686 :4.4.-.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.-.el6 for package: gcc-c++-4.4.-.el6.i686
--> Processing Dependency: gcc = 4.4.-.el6 for package: gcc-c++-4.4.-.el6.i686
--> Running transaction check
---> Package gcc.i686 :4.4.-.el6 will be installed
--> Processing Dependency: libgomp = 4.4.-.el6 for package: gcc-4.4.-.el6.i686
--> Processing Dependency: cpp = 4.4.-.el6 for package: gcc-4.4.-.el6.i686
--> Processing Dependency: libgomp.so. for package: gcc-4.4.-.el6.i686
---> Package libstdc++-devel.i686 :4.4.-.el6 will be installed
--> Running transaction check
---> Package cpp.i686 :4.4.-.el6 will be installed
---> Package libgomp.i686 :4.4.-.el6 will be installed
--> Finished Dependency Resolution Dependencies Resolved ==========================================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================================
Installing:
gcc-c++ i686 4.4.-.el6 c6-media 4.3 M
Installing for dependencies:
cpp i686 4.4.-.el6 c6-media 3.4 M
gcc i686 4.4.-.el6 c6-media 8.2 M
libgomp i686 4.4.-.el6 c6-media k
libstdc++-devel i686 4.4.-.el6 c6-media 1.6 M Transaction Summary
==========================================================================================================================================
Install Package(s) Total download size: M
Installed size: M
Is this ok [y/N]: y
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------------
Total MB/s | MB :
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libstdc++-devel-4.4.-.el6.i686 /
Installing : cpp-4.4.-.el6.i686 /
Installing : libgomp-4.4.-.el6.i686 /
Installing : gcc-4.4.-.el6.i686 /
Installing : gcc-c++-4.4.-.el6.i686 /
Unable to connect to dbus
Verifying : gcc-c++-4.4.-.el6.i686 /
Verifying : libgomp-4.4.-.el6.i686 /
Verifying : gcc-4.4.-.el6.i686 /
Verifying : libstdc++-devel-4.4.-.el6.i686 /
Verifying : cpp-4.4.-.el6.i686 / Installed:
gcc-c++.i686 :4.4.-.el6 Dependency Installed:
cpp.i686 :4.4.-.el6 gcc.i686 :4.4.-.el6 libgomp.i686 :4.4.-.el6 libstdc++-devel.i686 :4.4.-.el6 Complete!
[root@localhost ~]#
可以看到安装 gcc-c++ 成功了。
安装 gcc-c++ 时报错和原有 gcc 版本冲突的更多相关文章
- windows下pip安装python模块时报错
windows下pip安装python模块时报错总结 装载于:https://www.cnblogs.com/maxaimee/p/6515165.html 前言: 这几天把python版本升级后, ...
- 关于pycharm中安装第三方库时报错的解决办法(一)
记录自己的生活! 一.事发背景 在pycharm中直接安装第三方库时因为版本问题总是无法安装成功,事情不大,但是很重要. 二.经过 最开始我自己电脑上安装了Python3.6和Python2. ...
- windows下pip安装python模块时报错【转】
windows下pip安装python模块时报错总结 请给作者点赞--> 原文链接 1 权限问题 C:\Users\ljf>pip install xlwt Exception: Trac ...
- npm安装socket.io时报错的解决方法(npm WARN enoent ENOENT: no such file or directory, open '/usr/local/nodejs/bin/package.json')
执行 npm install socket.io安装时报错: [root@WEB node_modules]# npm install socket.ionpm WARN enoent ENOENT: ...
- [LoadRunner]LR11安装或破解时报错的解决方法
背景:在性能测试项目上,需要安装到LR11进行性能测试,而在安装时会出现安装运行环境失败,安装文件缺失等问题.现总结了上述问题,并给出以下解决方法: 问题1:安装LoadRunner时出现“计算机缺少 ...
- windows下pip安装python模块时报错总结
http://www.cnblogs.com/liaojiafa/p/5100550.html 前言: 这几天把python版本升级后,发现pip安装模块好多都报错(暂不确定是不是因为升级导致的),我 ...
- Linux安装mysql-python库时报错解决办法
用pip安装mysql-python库的时候遇到如下报错 root@LoidAir:~# pip install mysql-python Collecting mysql-python Using ...
- 安装MongoDB启动时报错‘发生系统错误2’的解决办法
安装数据库mongodb启动时报"发生系统错误2". 这个问题是如果你之前已经装过一次,并且两次安装目录不同,就绝对会碰到的,因为你之前安装的路径已经在注册表中生成了,并没有随着你 ...
- gem安装redis库时报错
报错一: [root@Redis-1 software]# /usr/local/ruby/bin/gem install redis-3.2.2.gem ERROR: Loading command ...
随机推荐
- pageEncoding的默认设置
windows-->preference-->myeclipse-->files and editors-->jsp 右侧 Encoding 选择 ISO 10646/Uni ...
- bitbucket+sourcetree+p4merge for windows 版本控制
这里选择bitbucket作为仓库的原因是,它能够在设置私有仓库的前提下组建5人团队 一:https://bitbucket.org/ 注册bitbucket 二:http://www.sourcet ...
- 框架Hibernate笔记系列 基础Session
标题:框架Hibernate笔记 资料地址: 1. www.icoolxue.com 孔浩 1.背景简介 Hibenate是JBoss公司的产品.它是数据持久化的框架.Usually,我们使用JDBC ...
- Swagger接入
一 简介 Swagger是一个开源项目,用于描述和生成RestAPi的文档.可以帮助开发人员快速了解web服务的功能. 二 接入Swagger流程 1.在所在Module的pom.xml中,添加Sw ...
- gcc shared object
介绍一个生成动态链接库*.so的例子: 首先新建1个头文件test.h: #include <stdio.h> void first(); void second(); void thir ...
- html 网页文本设计
1.文本的排版 1.1 <body> <h2>李白</h2> <p align="center" > <font face=& ...
- C# yield
C#中的yield可以应用在一个可迭代的方法中,我们必须真正理解此关键词,才能将它正确的应用到实际生产中.为了说明yield会出现让我们迷惑的结果,下面先定义一个MyObject类: class My ...
- JavaScript实战(带收放动画效果的导航菜单)
虽然有很多插件可用,但为了共同提高,我做了一系列JavaScript实战系列的实例,分享给大家,前辈们若有好的建议,请务必指出,免得误人子弟啊! ( 原创文章,转摘请注明:苏福:http://www. ...
- silverlight如何通过单独部署的WCF站点访问sharepoint2013的图片库
最近有项目silverlight通过单独部署的WCF站点访问sharepoint2013的图片库,需要做个笑脸墙效果如下: 结果开发完毕后无法在SP站点显示出来.使用VS自带的WCF工具进行测试.如下 ...
- Sharepoint学习笔记—习题系列--70-576习题解析 -(Q25-Q28)
Question 25 You are designing a SharePoint 2010 farm in your organization. You need to design the li ...