no acceptable C compiler found in $PATH

Linux操作系统发生如下报错:

no acceptable C compiler found in $PATH,代表你没有安装C编译器

no acceptable C compiler found in $PATH

 

执行 yum -y install gcc-c++命令进行安装,安装完后,输入gcc -v检查是否安装成功,出现下图所示代表安装c编译器成功。

no acceptable C compiler found in $PATH