`

./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

一切搞定
分享到:
评论

相关推荐

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

    ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module ``` 上述命令会启用SSL支持和状态监控模块。 5. **编译源码**: 使用`make`命令来编译源码: ```bash make...

    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 ...

    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时报错一例.docx

    ./configure: error: the HTTP rewrite module requires the PCRE library. ``` 这个问题意味着 Nginx 的 HTTP 重写模块需要 Perl 兼容正则表达式(PCRE)库。为了解决这个问题,你需要安装 `pcre-devel` 包,它包含...

    ./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

    lua-nginx-module-0.10.9rc7

    《Lua在Nginx中的应用:Lua-Nginx-Module 0.10.9rc7详解》 Lua-Nginx-Module是Nginx服务器中一个强大的扩展模块,允许我们在Nginx配置文件中直接嵌入Lua脚本,极大地提高了Nginx处理动态请求的能力。本文将详细探讨...

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

    ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr make sudo make install ``` 6. **启动httpd**:安装完成后,你可以启动httpd服务,测试是否成功: ```bash sudo /usr/local/apache2/bin/...

    CentOS下编译php时的一些典型错误及解决办法.

    11. configure: error: Cannot find MySQL header files under /usr.Note that the MySQL client library is not bundled anymore! 解决方法: yum install mysql-devel 此错误是由于缺少 mysql-devel 库文件所...

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

    ./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_gzip_static_module make sudo make install ``` `./configure`命令会检查你的系统环境并设置合适的编译选项。`make`和`make install`...

    带rtmp模块的nginx安装脚本

    5. **配置Nginx**:进入Nginx源代码目录,运行`./configure`命令,添加RTMP模块的支持。配置参数可能包括`--add-module=rtmp_module_path`,指定RTMP模块的路径。 6. **编译和安装Nginx**:使用`make`命令编译源...

    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,需要...

    pcre-8.37.tar.gz和zlib-1.2.8.tar.gz

    2. 配置:进入解压后的目录,运行`./configure`检查系统环境并生成Makefile。 3. 编译:执行`make`命令编译源代码。 4. 安装:使用`sudo make install`将编译好的库文件安装到系统目录。 接下来,`zlib-1.2.8.tar....

    Linphone编译错误及解决方法

    7. configure: error: Could not find libavcodec (from ffmpeg) headers and library. This is mandatory for video support 错误原因:缺少libavcodec头文件和库文件。 解决方法:sudo apt-get install ...

    nginx-upload-module-master.rar_modules_nginx_upload

    【Nginx Upload Module 深度解析】 Nginx Upload Module 是一款为 Nginx Web 服务器设计的扩展模块,主要用于处理文件上传功能。它提供了高效、灵活且可靠的文件上传解决方案,支持大文件分块上传以及断点续传,是...

    amber安装过程命令记录

    ./configure --prefix=/home/$USERNAME/openmpi ``` 二、amber安装环境依赖更新补丁 在安装amber之前,需要更新amber安装环境依赖补丁,命令记录如下: ``` export AMBERHOME=/opt/amber/amber18 export CUDA_...

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

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

    centos 6.9 安装freeswitch 1.6.18

    当运行 `./configure` 并执行 `make` 命令时,可能会遇到以下错误: ```bash make[4]: Entering directory `/usr/local/src/freeswitch-1.6.18/src/mod/applications/mod_fsv' Makefile:797: *** You must ...

    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.

Global site tag (gtag.js) - Google Analytics