CentOS installation Nginx error "configure: error: the HTTP rewrite module requires the PCRE library" solution

Error when installing Nginx on CentOS 6.2

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

Solution:

  1. Install pcre-devel and openssl-devel
  2. yum -y install pcre-devel openssl openssl-devel
  3. ./configure --prefix=/usr/local/nginx
  4. make
  5. make install

Follow the official account " Python Column ", and reply to " Machine Learning E-books " in the background to get 100 e-books related to machine e-learning.

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324148203&siteId=291194637