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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章