./Configure: error: the HTTP rewrite module requires the PCRE Library

Source: Internet
Author: User
Tags install openssl openssl library

Sometimes, we need to install nginx separately to handle a large number of download requests. How to solve the rewrite and HTTP cache errors when installing nginx on centos5 separately:

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

An error occurred while installing nginx.

./Configure: error: the HTTP rewrite module requires the PCRE Library.

Install PCRE-devel to solve the problem
Yum-y install PCRE-devel

Error message:./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.

Solution:

Yum-y install OpenSSL-devel

Summary:

Yum-y install PCRE-devel OpenSSL-devel

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

Make

Make install

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.