Wed 30 Aug 2006
Compiling nginx in RedHat Linux: PCRE library problem
Posted by Scoundrel under UncategorizedIf you will try to compile nginx in Redhat Linux, you can get following error even if you have pcre-devel package installed:
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= option.
If you are experiencing this small problem, you should simply use following parameter of configure script:
# ./configure --with-cc-opt="-I /usr/include/pcre"
And voila!
+ using system PCRE library
Now it can see and will use system PCRE library.
- RedHat Has Opened Its Knowledge Base!
- Flash Video (FLV) Streaming With Nginx
- Using Nginx, SSI and Memcache to Make Your Web Applications Faster
- Typical Configurations Overview For Nginx HTTP(S) Reverse Proxy/Web Server
- SOS!
2006-08-31 at 11.12 am
Так об этом вроде и в инструкции на сайте Игоря Сысоева написано
2006-08-31 at 2.00 pm
1) Написано где?
2) Насколько я понимаю, написано на русском?
2006-08-31 at 5.34 pm
1) http://sysoev.ru/nginx/getting_started.html
2) верно
2006-08-31 at 5.37 pm
2Alex: а ну, ткни меня носом в описание того, как в редхате скомпилить? Отказываться от mod_rewrite нельзя, а with-pcre - это немного не то…
2006-08-31 at 5.42 pm
Упс, прошу прощения.. перепутал немного
Действтиельно, большое спасибо - надо будет попробовать
2007-09-03 at 8.13 pm
How do you get the pcre library in the first place? I don’t have a /usr/include/pcre directory…
2008-02-19 at 12.28 am
Great little tip, thanks! It should be noted though, that you need the pcre-devel library installed first.
2008-03-16 at 5.52 pm
Thanks cka3o4nik !!! that sorted out a problem I been working on for days!