提示CC和GCC未找到命令的解决方法

现象:
Use which C compiler? [cc]
./trygcc:行10: cc: 未找到命令
Uh-oh, the C compiler ‘cc’ doesn’t seem to be working.
./trygcc:行25: gcc: 未找到命令
./checkcc:行10: cc: 未找到命令
Uh-oh, the C compiler ‘cc’ doesn’t seem to be working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS vendor,
or for a free C compiler try http://gcc.gnu.org/

解决方法:
yum install gcc
yum install gcc-c++

你可能感兴趣的:(Linux)