码迷,mamicode.com
首页 > 系统相关 > 详细

linux centos 装g++安装不了

时间:2014-07-23 12:35:56      阅读:303      评论:0      收藏:0      [点我收藏+]

标签:blog   java   os   io   for   re   

今天需要编译一个项目的时候在装g++都装不上,

[root@master hadoop]# yum install g++
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.yun-idc.com
 * extras: mirrors.yun-idc.com
 * updates: mirrors.yun-idc.com
Setting up Install Process
No package g++ available.

 一直提示这个错误,后面参考网上资料用: yum install gcc-c++就可以,如下图

[root@master hadoop]# yum install gcc-c++
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirrors.yun-idc.com
 * extras: mirrors.yun-idc.com
 * updates: mirrors.yun-idc.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
--> Running transaction check
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 至于是什么原因就不清楚

linux centos 装g++安装不了,布布扣,bubuko.com

linux centos 装g++安装不了

标签:blog   java   os   io   for   re   

原文地址:http://www.cnblogs.com/zhanggl/p/3862426.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!