我是靠谱客的博主 稳重篮球,这篇文章主要介绍安装nginx及fastdfs-nginx-module--./configure: error: the HTTP rewrite module requires the PCRE library.,现在分享给大家,希望可以做个参考。
安装nginx及fastdfs-nginx-module
sudo ./configure --prefix=/usr/local/nginx/ --add-module=/home/ling/fastdfs-nginx-module-master/src
# = 后边为fastdfs-nginx-module-master解压后的目录的绝对路径/src
报错:./configure: error: the HTTP rewrite module requires the PCRE library.

安装Nginx时需要先安装依赖包,Ubuntu中不像centOS等使用yum直接在线安装,在网上找了好多方法,最后发现以下方法好用:
首先使用dpkg命令查看自己需要的软件是否安装。
例如查看zlib是否安装:
dpkg -l | grep zlib
解决依赖包openssl安装,命令:
sudo apt-get install openssl libssl-dev
解决依赖包pcre安装,命令:
sudo apt-get install libpcre3 libpcre3-dev
解决依赖包zlib安装,命令:
sudo apt-get install zlib1g-dev
安装完成

最后
以上就是稳重篮球最近收集整理的关于安装nginx及fastdfs-nginx-module--./configure: error: the HTTP rewrite module requires the PCRE library.的全部内容,更多相关安装nginx及fastdfs-nginx-module--./configure:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复