1、为什么会出现这个问题?
因为配置nginx环境执行./configure出现了错误,再执行make就会报:make: *** No rule to make target build', needed bydefault'. Stop.错误。
2、本人执行./configure出现的error:
./configure: error: the HTTP rewrite module requires the PCRE library.You can either disable the module by using--without-http_rewrite_moduleoption, orinstallthe PCRElibraryintothesystem,orbuildthe PCRElibrarystaticallyfromthesourcewithnginxbyusing--with-pcre=<path> option.
3、解决过程如下
①、需要安装pcre包:下载地址:https://ftp.pcre.org/pub/pcre/
②、tar zxvf pcre-8.12.tar.gz
③、cd pcre-8.12
④、./configure
⑤、make
⑥、make install