查看完整版本: Compiling nginx in RedHat Linux: PCRE library problem

ELM 2007/11/5 23:48

Compiling nginx in RedHat Linux: PCRE library problem

If you will try to compile nginx in Redhat Linux, you can get following error even if you have pcre-devel package installed:
[font=monospace][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>[/quote][/font]

If you are experiencing this small problem, you should simply use following parameter of configure script:
[font=monospace][code]# ./configure --with-cc-opt="-I /usr/include/pcre"[/code][/font]

And voila!
[font=monospace]+ using system PCRE library[/font]

Now it can see and will use system PCRE library.


From: [url]http://blog.kovyrin.net/2006/08/30/nginx-redhat-pcre-problem/[/url]
页: [1]
查看完整版本: Compiling nginx in RedHat Linux: PCRE library problem