Compiling nginx in RedHat Linux: PCRE library problem

Posted by Alexey 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 Открыл Доступ к своей Knowledge Base!
  2. Обзор Неофициальных Репозитариев Пакетов Для Дистрибутива Debian GNU/Linux
  3. Linux User in Solaris 10 Survival Guide
  4. Как настроить IP-IP-тунель между FreeBSD и Linux
  5. Настройка и оптимизация Red Hat Enterprise Linux для баз данных Oracle 9i и 10g

Tags:

8 Comments » | Bookmark on del.icio.us

8 Responses to this entry

Scoundrel says:

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

Alex says:

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

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