Compiling nginx in RedHat Linux: PCRE library problem

Posted by Oleksiy Kovyrin under Uncategorized

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

1
2
3
4
5
6
7
8
9
10
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:

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

And voila!

1
  + using system PCRE library

Now it can see and will use system PCRE library.


Related posts:

  1. RedHat Has Opened Its Knowledge Base!
  2. 5 Minutes Guide To Linux Traffic Shaping
  3. Unofficial Debian GNU/Linux Repositories Overview
  4. Turning On NCQ Queing On ICH7 Chipsets With Linux
  5. How to create IP-IP tunnel between FreeBSD and Linux

8 Responses to this entry

j0k3r says:

Так об этом вроде и в инструкции на сайте Игоря Сысоева написано ;)

Scoundrel says:

2Alex: а ну, ткни меня носом в описание того, как в редхате скомпилить? Отказываться от mod_rewrite нельзя, а with-pcre – это немного не то…

Alex says:

Упс, прошу прощения.. перепутал немного :)

Действтиельно, большое спасибо – надо будет попробовать ;)

Insain says:

Thanks cka3o4nik !!! that sorted out a problem I been working on for days!