Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

时间:2023-03-09 19:15:26
Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

场景

Ubuntu Server 16.04 LTS上怎样安装下载安装Nginx并启动:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102828075

在上面进行安装Nginx前配置检查时提示:

checking for C compiler .. not found

./configure: error: C compiler cc is not found

Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

注:

博客:
https://blog.csdn.net/badao_liumang_qizhi
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载。

实现

如果出现上面这种检查不通过,则说明缺少某些依赖。

执行以下命令:

sudo apt-get install build-essential

Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

然后再执行上面的检查命令,出现下面这种情况,则是检查通过

Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found

Ubuntu Server 上在安装Nginx时执行./confgiure后提示:C compiler cc is not found