错误

运行C语言程序在Linux系统中报错:

Linux报错”-bash: gcc: command not found"

解决

首先使用如下命令:whereis gcc。查看gcc是否安装好。

如果显示如下,则表示没有安装:

Linux报错”-bash: gcc: command not found"

如果是Centos系统下载安装gcc的命令是:yum install gcc

Linux报错”-bash: gcc: command not found"

等待安装成功后再次输入:whereis gcc

Linux报错”-bash: gcc: command not found"

再次运行C语言程序就可以了。

Linux报错”-bash: gcc: command not found"

相关文章: