Welcome! Log In Create A New Profile

Advanced

Can not configure pcre on CENTOS

November 24, 2009 10:36AM
Hi. I apologize but I am a linux noobie. I installed pcre on Centos using "yum install pcre-devel" . Everything worked fine. However, I can seem to find the correct location for the pcre library. I use locate and find and have tried several combinations.

The following is my configure command:

/configure --sbin-path=/sbin/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-md5=auto/lib/md5 --with-sha1=auto/lib/sha1 --with-http_perl_module --without-http_rewrite_module --with-pcre=../pcre-6-6.2

./configure runs fine.

make fails

I have tried several different values for the --with-pcre= option, such as /usr/bin/pcre-6-6.2 and I always get the following


Entering directory `/tmp/nginx/nginx-0.7.64'
cd ../pcre-6-6.2 \
&& if [ -f Makefile ]; then make distclean; fi \
&& CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
./configure --disable-shared
/bin/sh: line 0: cd: ../pcre-6-6.2: No such file or directory
make[1]: *** [../pcre-6-6.2/Makefile] Error 1
make[1]: Leaving directory `/tmp/nginx/nginx-0.7.64'
make: *** [build] Error 2

How can I locate the correct library for pcre and what value should I set it to for the --with-pcre option?

thanks

johndesp
Subject Author Posted

Can not configure pcre on CENTOS

johndesp November 24, 2009 10:36AM

Re: Can not configure pcre on CENTOS

Christopher Smith November 24, 2009 10:50AM

Re: Can not configure pcre on CENTOS

Igor Sysoev November 24, 2009 11:02AM

Re: Can not configure pcre on CENTOS

Maxim Dounin November 24, 2009 11:08AM

Re: Can not configure pcre on CENTOS

johndesp November 24, 2009 11:50AM

unknown directive "if" in /usr/local/nginx/nginx.conf

johndesp November 24, 2009 12:08PM

Re: unknown directive "if" in /usr/local/nginx/nginx.conf

Maxim Dounin November 24, 2009 02:20PM

Re: unknown directive "if" in /usr/local/nginx/nginx.conf

Igor Sysoev November 24, 2009 12:58PM

Re: unknown directive "if" in /usr/local/nginx/nginx.conf

Mark Maunder November 24, 2009 01:14PM

Re: unknown directive "if" in /usr/local/nginx/nginx.conf

johndesp November 24, 2009 01:14PM

Re: unknown directive "if" in /usr/local/nginx/nginx.conf

Igor Sysoev November 24, 2009 04:10PM

Thanks for all your Help -

johndesp November 25, 2009 05:35AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 274
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready