ubuntu error: the HTTP rewrite module requires the PCRE library.

checking for getaddrinfo() ... found

configuring additional modules

adding module in //usr/src/echo-nginx-module-master

 + ngx_http_echo_module was configured

checking for PCRE library ... not found

checking for PCRE library in /usr/local/ ... not found

checking for PCRE library in /usr/include/pcre/ ... not found

checking for PCRE library in /usr/pkg/ ... not found

checking for PCRE library in /opt/local/ ... not found


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

You can either disable the module by using --without-http_rewrite_module

option, or install the PCRE library into the system, or build the PCRE library

statically from the source with nginx by using --with-pcre=<path> option.

  解决办法:

     sudo apt-get update

     sudo apt-get install libpcre3 libpcre3-dev


你可能感兴趣的:(nginx,pcre)