ubuntu安装 nginx报错 ./configure: error: C compiler cc is not found
时间: 2024-06-16 22:07:27 浏览: 449
在Ubuntu上安装Nginx时,如果出现"./configure: error: C compiler cc is not found"的错误提示,这通常是由于缺少C编译器导致的。解决这个问题的方法是安装C编译器。
你可以通过以下步骤来安装C编译器:
1. 打开终端,使用以下命令更新软件包列表:
```
sudo apt update
```
2. 安装C编译器(gcc)和make工具:
```
sudo apt install build-essential
```
3. 安装完成后,再次尝试安装Nginx,应该不再出现C编译器未找到的错误。
阅读全文
相关推荐









