Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法

jackxiang 2013-10-6 13:12 | |
背景: 在树莓派上编译安装Nginx出现下面错误,因为是相当于debian上安装,所以得atp-get。

Debian环境下编辑安装nginx错误./configure: error: the HTTP rewrite module requires the PCRE library.解决
Published on April 24, 2013 in Linux. 6 Comments
Tags: linux, nginx.
编辑安装nginx的时候,出现下面的错误:
——–

./configure: error: the HTTP rewrite module requires the PCRE library.

——–

解决方法:
# apt-get install libpcre3 libpcre3-dev

实践如下:
root@raspberrypi ~/dev_codes_all/nginx_Codes_All/nginx-1.4.2 #  apt-get install libpcre3 libpcre3-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
libpcre3 已经是最新的版本了。
下列软件包是自动安装的并且现在不需要了:
  ax25-node icelib libax25 libblas3gf liblapack3gf libx264-123 libx264-129
Use 'apt-get autoremove' to remove them.
下列【新】软件包将被安装:
  libpcre3-dev
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 55 个软件包未被升级。
需要下载 343 kB 的软件包。
解压缩后会消耗掉 663 kB 的额外空间。
您希望继续执行吗?[Y/n]y
0% [正在等待报头]                                            
获取:1 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpcre3-dev armhf 1:8.30-5 [343 kB]
下载 343 kB,耗时 20秒 (16.7 kB/s)                                                                                                      
Selecting previously unselected package libpcre3-dev.
(正在读取数据库 ... 系统当前共安装有 75467 个文件和目录。)
正在解压缩 libpcre3-dev (从 .../libpcre3-dev_1%3a8.30-5_armhf.deb) ...
正在处理用于 man-db 的触发器...
正在设置 libpcre3-dev (1:8.30-5) ...
_________________________________________________________________________________________________________________

CentOS安装Nginx 报错“configure: error: the HTTP rewrite module requires the PCRE library”解决办法
CentOS 6.2 安装Nginx时报错

错误提示:
./configure: error: the HTTP rewrite module requires the PCRE library.

安装pcre-devel与openssl-devel解决问题

yum -y install pcre-devel openssl openssl-devel

./configure --prefix=/usr/local/nginx
make
make install

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/6717/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!


最后编辑: jackxiang 编辑于2013-10-6 13:31
评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]