./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=<path> option.
如上错误显示需要pcre库,在ubuntu中,你需要安装libpcre3 和 libpcre3-dev,命令如下:
sudo apt-get install libpcre3 libpcre3-dev
安装完成后,
./configure
make
make install