`

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

 
阅读更多
有时候,我们需要单独安装nginx,来处理大量的下载请求。单独在Centos5安装nginx遇到的rewrite和HTTP cache错误解决办法:
wget http://nginx.org/download/nginx-0.8.33.tar.gz
tar -zxvf nginx-0.8.33.tar.gz
cd nginx-0.8.33
./configure --prefix=/usr/local/nginx



安装Nginx时报错

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

安装pcre-devel解决问题
yum -y install pcre-devel



错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library.   You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.

解决办法:

yum -y install openssl openssl-devel



总结:

yum -y install pcre-devel openssl openssl-devel

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

make

make install

一切搞定
分享到:
评论

相关推荐

    nginx-1.0.5最新稳定版

    状况:./configure: error: the HTTP rewrite module requires the PCRE library. 解决:yum -y install pcre-devel 安装相应的包 2.缺少zlib 状况: ./configure: error: the HTTP gzip module requires the zlib ...

    Linux 下 Nginx的安装:(解压,进入目录里面执行,./configure –-> make -> sudo make install)

    NULL 博文链接:https://jackroomage.iteye.com/blog/1687401

    nginx安装教程

    sudo ./configure sudo make sudo make install # 安装zlib库 cd /usr/local/src sudo wget http://zlib.net/zlib-1.2.11.tar.gz sudo tar -zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 sudo ./configure sudo make ...

    ./nginx: No such file or directory

    我用的是ubuntu18.04安装nginx 一般来说我们安装的nginx文件结构大致是这样的: 1. 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 2.... 3.... 4.... 5....

    离线安装nginx相关依赖包

    用于解决如下错误: ./configure: error: the HTTP rewrite module requires the PCRE library. 安装相关依赖包 1、上传lib解压,然后执行如下命令安装(需要root权限) 2、rpm -Uvh ./*.rpm --nodeps --force

    gd-devel-2.0.35-11.el6.x86_64.rpm

    redhat 6.4 安装nginx可能会报错./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries. 此时需要安装gd gd-devel,需要...

    银河麒麟V10系统+飞腾CPU交叉编译OpenCV

    ./configure make –j8 make install 执行上述过程中make时可能会报错,错误结果如下 ./include/nasmlib.h:194:1: error: ‘pure’ attribute on function returning ‘void’ [-Werror=attributes] 194 | void pure...

    CentOS7系统下用YUM安装Nginx详解

    简介 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,第一个公开版本0.1.0发布于2004年10月4日。...sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.

    arm-linux-gcc-4.3.2(交叉编译器)

    ding specs from /usr/local/arm/3.4.1/bin/../lib/gcc/arm-linux/3.4.1/specs Configured with: /opt/crosstool/crosstool-0.28/build/arm-linux/gcc-3.4.1-glibc-2.3.2/gcc-3.4.1/configure --target=arm-linux --...

    带rtmp模块的nginx安装脚本

    centos7中安装带rtmp模块的nginx自动化脚本

    linux离线安装nginx1.14,含有安装说明和所有依赖

    公司服务器需要安装新版本的nginx,多次搜索资源后发现了此版本nginx,可以在linux离线安装,含有安装说明和所有依赖,安装完了如果好用请给个好评,谢谢

    安装linux编译时报apr错误的解决方法

    安装linux编译时报apr错误的解决方法 httpd-2.4.3.tar.gz, apr-util-1.3.10.tar.gz, apr-1.4.2.tar.gz,

    qt 安装缺少包 version“Glibc_2.9” not fount

    (2) ./configure也就是说不能直接在在glibc-2.9这个目录中进行./configure,必须重新建立一个目录后并且进入后再在刚才的目录下进行./configure,例如就是重新建立了一个目录glibc_build 进入这个目录后/roo/programes...

    nginx离线安装文件

    #### ./configure或者./config ( 如果./configure提示错误,则使用./config ) make && make install 4,安装openssl( 如果提示错误,好像 可以不执行此布 ) tar -xvf openssl-1.0.2r.tar.gz && cd openssl-...

    apr-1.7.0.zip

    apache-http源码编译 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    ffmpeg 4.2.0和ffmpeg2.6.1,并有txt文档安装说明。./configure。亲测可用

    ffmpeg 4.2.0和ffmpeg2.6.1,并有txt文档安装说明。.configure。亲测可用

    PHP 仿陌陌直播

    ./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module --with-http_ssl_module make && make install 本次默认安装目录为:/root, add-module为下载的nginx-rtmp-module文件路径。 安装时候...

    httpd-2.4.41.rar

    源码编译:亲测有效! 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file ..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    apr-util-1.6.1.zip

    apache-http源码编译 1、httpd-2.4.41.tar 2、apr-1.7.0.tar 报错: rm: cannot remove `libtoolT': No such file or..../configure --prefix=/usr/local/apache --with-apr=/usr/local/apr/ --with-apr=/usr/local/apr

    nginx-1.18.0离线安装依赖包及过程

    ./configure make make install tar zxvf pcre-8.40.tar.gz cd pcre-8.40 ./configure make make install tar zxvf openssl-1.0.2s.tar.gz cd openssl-1.0.2s ./config make make install tar zxvf nginx-...

Global site tag (gtag.js) - Google Analytics