Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Maxim Dounin
December 11, 2013 08:26AM
Hello!

On Tue, Dec 10, 2013 at 11:08:03AM -0800, rand@sent.com wrote:

> > Of course any installed pcre instance can be used. Moreover,
> > nginx will try hard to detect various standard installations, see
> > lib/pcre/conf.
> >
> > The --with-pcre option was introduced to simplify building the
> > library with nginx itself, which is sometimes practical,
> > especially if there is no standard way to install the library
> > (like, e.g., on win32).
>
> reading @
>
> lib/pcre/conf
>
> I do note the 'trying hard', although I see no attempts to find in
> */lib64, or use pkg-config or pcre-config.

Support for pcre-config probably should be added, as it may
simplify things.

> On my system, src is in
>
> /usr/local/src/pcre
>
> pcre's configured as shared-only, with pcre-jit enabled,
>
> ./configure --enable-shared --disable-static --enable-jit
> --enable-pcregrep-jit ...
>
> and build's installed in
>
> /usr/local/bin/pcre-config --version
> 8.34-RC
> pcre-config --libs --cflags
> -L/usr/local/lib64 -lpcre
> -I/usr/local/include
> pkg-config libpcre --libs --cflags
> -I/usr/local/include -L/usr/local/lib64 -lpcre
>
> That said, if I want nginx to enable pcre use, use pcre-jit, and use
> specifically that locally-installed pcre(jit) instance, what's the right
> nginx config?
>
> This,
>
> --with-pcre=/usr/local/src/pcre --with-pcre-jit
>
> does not appear to be the correct choice.

As you already have libpcre installed, you don't need nginx to
build it (and you don't need sources). If nginx isn't able to
find the pcre itself, use something like this to tell where to
look for headers and library:

./configure --with-cc-opt="-I/usr/local/include" \
--with-ld-opt="-L/usr/local/lib64"

It should work.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Maxim Dounin 1175 December 11, 2013 12:24AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Anonymous User 481 December 11, 2013 12:24AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Maxim Dounin 373 December 11, 2013 08:26AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Anonymous User 327 December 11, 2013 10:02AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Maxim Dounin 370 December 11, 2013 11:10AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Anonymous User 320 December 11, 2013 01:06PM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Anonymous User 342 December 11, 2013 01:12PM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Ruslan Ermilov 340 December 12, 2013 06:50AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Anonymous User 439 December 12, 2013 09:26AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Maxim Dounin 364 December 11, 2013 12:30AM

Re: [PATCH] Configure: added new option --with-pcre-conf-opt=OPTIONS.

Anonymous User 342 December 11, 2013 12:30AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 114
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