No package gcc+available解決策が現れる

2578 ワード

システム


CentOS Linux release 7.4.1708 (Core)
 

gccのインストールエラー

[root@ip-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)サポートされているバージョンが見つかりました
[root@ip-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