Nginx编译环境添加fastdfs-nginx-module模块出现异常
root@LAPTOP-2OT43UL7:/usr/local/src/nginx-1.15.4# ./configure --add-module=/usr/local/src/fastdfs-nginx-module/src/
1.the HTTP rewrite module requires the PCRE library.
./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.
Ubuntu下
sudo apt-get install libpcre3 libpcre3-dev
Linux下
yum -y install pcre-devel
2…/configure: error: the HTTP gzip module requires the zlib library.
./configure: error: the HTTP gzip module requires the zlib library.
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.
Ubuntu下
root@LAPTOP-2OT43UL7:/usr/local/src/nginx-1.15.4# sudo apt-get install zlib1g-dev
Linux下
yum install -y zlib-devel