出现No package gcc+ available解决办法
Posted lemon-le
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了出现No package gcc+ available解决办法相关的知识,希望对你有一定的参考价值。
系统
CentOS Linux release 7.4.1708 (Core)
安装gcc时报错
[[email protected]172-29-0-155 node-v10.15.3]# yum -y install gcc+ Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com No package gcc+ available.
解决办法
1)找到支持的版本
[[email protected]172-29-0-155 node-v10.15.3]# yum search "gcc-c++" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.aliyun.com * updates: mirrors.aliyun.com ================================================================================================================ N/S matched: gcc-c++ ================================================================================================================ gcc-c++.x86_64 : C++ support for GCC Name and summary matches only, use "search all" for everything.
2)安装
yum install gcc-c++.x86_64
以上是关于出现No package gcc+ available解决办法的主要内容,如果未能解决你的问题,请参考以下文章
Linux RedHat无法安装软件问题(No package gcc available. Nothing to do)
The POM for cn.e3mall:e3mall-common:jar:0.0.1-SNAPSHOT is missing, no dependency information availab
ubuntu中输入arm-linux-gcc -v出现no such file or directory
yum安装出现No package vim available解决办法