字体:  

Compiling nginx in RedHat Linux: PCRE library problem

ELM 发表于: 2007-11-05 23:48 来源: 榆树社区

If you will try to compile nginx in Redhat Linux, you can get following error even if you have pcre-devel package installed:

QUOTE:

Configuration summary
  + threads are not used
  + PCRE library is 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.
</path>


If you are experiencing this small problem, you should simply use following parameter of configure script:

CODE:

# ./configure --with-cc-opt="-I /usr/include/pcre"


And voila!
+ using system PCRE library

Now it can see and will use system PCRE library.


From: http://blog.kovyrin.net/2006/08/30/nginx-redhat-pcre-problem/