checking for PCRE library ... not found checking for PCRE library in /usr/local/ ... not found checking for PCRE library in /usr/include/pcre/ ... not found checking for PCRE library in /usr/pkg/ ... not found checking for PCRE library in /opt/local/ ... not found ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre=
> option.
Solution
You need to install pcre.
1. Mac OS
Download pcre in the official website http://www.pcre.org/, such as pcre-8.44.zip, and run:
$ unzip pcre-8.44.zip $ cd pcre-8.44 $ pwd /Users/cpm/Downloads/packages/pcre-8.44
Copy your unzip path of pcre-8.44.zip, configure nginx again.