首页 > 代码库 > linux centos 装g++安装不了
linux centos 装g++安装不了
今天需要编译一个项目的时候在装g++都装不上,
[root@master hadoop]# yum install g++Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comSetting up Install ProcessNo package g++ available.
一直提示这个错误,后面参考网上资料用: yum install gcc-c++就可以,如下图
[root@master hadoop]# yum install gcc-c++Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile * base: mirrors.yun-idc.com * extras: mirrors.yun-idc.com * updates: mirrors.yun-idc.comSetting up Install ProcessResolving 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 ResolutionDependencies Resolved
至于是什么原因就不清楚
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。