Welcome! Log In Create A New Profile

Advanced

Re: minor misleading configure error-msg around PCRE

Maxim Dounin
October 29, 2013 06:50AM
Hello!

On Tue, Oct 29, 2013 at 11:27:48AM +0100, e1c1bac6253dc54a1e89ddc046585792@posteo.net wrote:

> Hi,
>
> ./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.
>
> This happens when not having pcre, using
> --without-http_rewrite_module BUT
> also --with-pcre as an option, like:
> ./configure --without-http_rewrite_module --with-pcre
>
> For sure that's a stupid combination, but just happened in a very
> long, generated
> configure line here. FWIW, this was on OpenBSD 5.1.

Actually, this is _valid_ configuration. It will compile nginx
with PCRE support in various places like location matching, but
without the rewrite module.

The error message provided is a bit misleading as it refers to a
module already disabled, but generating proper error messages for
this and similar non-trivial cases is tricky and was considered to
be an overkill.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

minor misleading configure error-msg around PCRE

Anonymous User October 29, 2013 06:30AM

Re: minor misleading configure error-msg around PCRE

Maxim Dounin October 29, 2013 06:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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