Nginx编译环境添加fastdfs-nginx-module模块出现异常

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
发布了57 篇原创文章 · 获赞 52 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_40495860/article/details/97682457
今日推荐