你的位置:首页 > 操作系统

[操作系统]安装 gcc

Centos 6.7 安装 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 ResolutionError: 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:

[[email protected] ~]# 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---> 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.i686 0:4.4.7-11.el6 will be installed--> Processing Dependency: libgomp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.i686--> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.i686--> Processing Dependency: libgomp.so.1 for package: gcc-4.4.7-11.el6.i686---> Package libstdc++-devel.i686 0:4.4.7-11.el6 will be installed--> Running transaction check---> Package cpp.i686 0:4.4.7-11.el6 will be installed---> Package libgomp.i686 0:4.4.7-11.el6 will be installed--> Finished Dependency ResolutionDependencies Resolved========================================================================================================================================== Package                Arch            Version              Repository           Size==========================================================================================================================================Installing: gcc-c++                i686            4.4.7-11.el6            c6-media            4.3 MInstalling for dependencies: cpp                  i686            4.4.7-11.el6            c6-media            3.4 M gcc                  i686            4.4.7-11.el6            c6-media            8.2 M libgomp                i686            4.4.7-11.el6            c6-media            135 k libstdc++-devel            i686            4.4.7-11.el6            c6-media            1.6 MTransaction Summary==========================================================================================================================================Install    5 Package(s)Total download size: 18 MInstalled size: 43 MIs this ok [y/N]: yDownloading Packages:------------------------------------------------------------------------------------------------------------------------------------------Total                                                   21 MB/s | 18 MB   00:00Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : libstdc++-devel-4.4.7-11.el6.i686                                           1/5 Installing : cpp-4.4.7-11.el6.i686                                                 2/5 Installing : libgomp-4.4.7-11.el6.i686                                               3/5 Installing : gcc-4.4.7-11.el6.i686                                                 4/5 Installing : gcc-c++-4.4.7-11.el6.i686                                               5/5Unable to connect to dbus Verifying : gcc-c++-4.4.7-11.el6.i686                                               1/5 Verifying : libgomp-4.4.7-11.el6.i686                                               2/5 Verifying : gcc-4.4.7-11.el6.i686                                                 3/5 Verifying : libstdc++-devel-4.4.7-11.el6.i686                                           4/5 Verifying : cpp-4.4.7-11.el6.i686                                                 5/5Installed: gcc-c++.i686 0:4.4.7-11.el6Dependency Installed: cpp.i686 0:4.4.7-11.el6    gcc.i686 0:4.4.7-11.el6    libgomp.i686 0:4.4.7-11.el6    libstdc++-devel.i686 0:4.4.7-11.el6Complete![[email protected] ~]#

可以看到安装 gcc-c++ 成功了。

 


去河南旅游必去景点去河南旅游要多少钱去河南旅游最佳路线去河南旅游最佳时间河南旅游线路报价盘点陕西六大逗比景点“缩头龟” 七娘山野炊山庄几点开门?深圳七娘山野炊山庄开门时间? 七娘山野炊山庄官网,深圳七娘山野炊山庄官方网站。 七娘山野炊山庄门票2015-10-12月深圳七娘山野炊山庄门票价格 英国工人中千万 玩转地球一圈 岭南印象园门票教师多少钱?广州岭南印象园门票优惠政策? 行李超重怎么办?飞机行李超重怎么办 行李超重收费多少? 从化大金峰最新票价?大金峰全面开放了吗? 崇明岛在哪_崇明岛在哪里_崇明岛在哪个省 梵净山在哪里_梵净山在哪_梵净山旅游交通地图 泡温泉穿什么_泡温泉穿什么泳衣_泡温泉需要穿泳衣吗 日月潭在哪里_日月潭在哪个省_日月潭风景区交通指南 神奇的武当山雾 中国湖北武当山购物:特产一览 手握地图,寻澳门美食手信街(组图) 十堰有什么地方特产? IDT7201LA35TP Datasheet IDT7201LA35TP Datasheet ICS843004AG-01LF Datasheet ICS843004AG-01LF Datasheet IDT74LVC273APGG8 Datasheet IDT74LVC273APGG8 Datasheet 东莞到古天文台旅游 东莞到古天文台旅游 东莞到古天文台旅游 东莞到古田会议旧址旅游 东莞到古田会议旧址旅游 东莞到古田会议旧址旅游 东莞到古田自然保护区旅游 东莞到古田自然保护区旅游 东莞到古田自然保护区旅游