文件夹有这个文件 运行报错./configure: error: C compiler cc is not found
时间: 2023-10-24 13:38:08 浏览: 117
这个错误提示可能是因为您的系统缺少了 C 编译器。您需要安装 C 编译器才能够运行该文件。您可以尝试使用以下命令来安装 C 编译器:
- 对于 Debian/Ubuntu 系统:`sudo apt-get install build-essential`
- 对于 CentOS/RHEL 系统:`sudo yum groupinstall "Development Tools"`
执行完上述命令后,再次尝试运行该文件,看看是否能够解决问题。如果问题仍然存在,请检查是否有其他错误提示,并尝试解决它们。
相关问题
liunx文件夹有这个文件 运行报错./configure: error: C compiler cc is not found
这个错误提示通常是由于缺少 C 编译器导致的。您需要先在您的 Linux 系统上安装 C 编译器,然后再尝试运行该文件。
如果您使用的是 Ubuntu 或者 Debian 等基于 Debian 的发行版,您可以使用以下命令来安装 C 编译器:
```
sudo apt-get update
sudo apt-get install build-essential
```
如果您使用的是 CentOS 或者 RHEL 等基于 Red Hat 的发行版,您可以使用以下命令来安装 C 编译器:
```
sudo yum groupinstall "Development Tools"
```
安装完成后,您可以再次尝试运行该文件,看看问题是否得到解决。如果问题仍然存在,请检查是否有其他错误提示,并尝试解决它们。
ubuntu安装 nginx报错 ./configure: error: C compiler cc is not found
在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编译器未找到的错误。
阅读全文
相关推荐
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)