ubuntu nginx linux ./configure: error: C compiler cc is not found the HTTP rewrite module requires

首先确认已安装gcc,如果没有安装,则使用这个命令安装:sudo apt install gcc

如果依旧报错,则可能是因为权限不足:加上sudo即可

可以看到已成功运行

如果出现下面的问题:./configure: error: the HTTP rewrite module requires the PCRE library.

安装libpcre:

sudo apt-get install libpcre3 libpcre3-dev

 

然后执行即可

然鹅下面的才是重点!!!

 

 

 

即使这一步成功了,后面还会有无穷无尽的错误。。。

 

使用:sudo apt install nginx

这个命令安装吧,一步到位!