编译程序时提示make: cc: Command not found
时间: 2023-10-07 20:04:03 浏览: 197
这个错误提示表明编译程序时无法找到 C 编译器。你需要确认在你的系统中是否已经安装了 C 编译器,例如 gcc。如果没有安装,你需要先安装 C 编译器。在 Ubuntu 系统上,你可以使用以下命令安装 gcc:
```
sudo apt-get install gcc
```
在 CentOS 系统上,你可以使用以下命令安装 gcc:
```
sudo yum install gcc
```
安装完成后,再执行编译命令即可。
相关问题
cygwin bash: make: command not found
根据提供的引用内容,出现"cygwin bash: make: command not found"错误是因为在Cygwin中没有安装make命令。要解决这个问题,可以按照以下步骤安装make命令:
1. 打开Cygwin终端。
2. 输入以下命令来安装make:
```shell
apt-cyg install make
```
3. 等待安装完成后,再次尝试运行make命令,应该不再出现"cygwin bash: make: command not found"错误。
请注意,安装make命令可能需要管理员权限。如果你没有管理员权限,请联系系统管理员或者尝试其他解决方案。
sudo: make: command not found
当在Ubuntu系统中出现"sudo: make: command not found"错误时,可以按照以下步骤解决:
1. 首先,更新软件包列表:
```shell
sudo apt-get update
```
2. 然后,安装make命令:
```shell
sudo apt-get install make
```
这样就可以解决"sudo: make: command not found"错误了。