问题一:
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 或 Debian:
sudo apt-get install libpcre3 libpcre3-dev
CentOS 或 Fedora:
sudo yum install pcre pcre-devel
安装完成后,再次运行./configure命令。
问题二:
You can either disable the module by using --without-http_gzip_module
option, or install the zlib library into the system, or build the zlib library
statically from the source with nginx by using --with-zlib=<path> option.
解决—安装 zlib 库:
Ubuntu 或 Debian:
sudo apt-get install zlib1g zlib1g-dev
CentOS 或 Fedora:
sudo yum install zlib zlib-devel
安装完成后,再次运行./configure命令。