You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Paul Reilly <pa...@tcd.ie> on 2012/07/04 13:36:57 UTC

[users@httpd] Apache 2.4.2 with LDAP support

Hello,

I'm having trouble building Apache 2.4.2 with LDAP support.
I get:

checking for ldap support in apr/apr-util... no
configure: WARNING: apr/apr-util is compiled without ldap support
checking whether to enable mod_authnz_ldap...
configure: error: mod_authnz_ldap has been requested but can not be built
due to prerequisite failures

I have the APR and APR source unpacked in to srclib.
My build directory is like this:

~/BUILD/httpd-2.4.2/
~/BUILD/httpd-2.4.2/srclib/apr/                         (apr 1.4.6)
~/BUILD/httpd-2.4.2/srclib/apr-util/                   (apr util 2.4.2)

My configure is:

./configure --prefix=/usr/local/apache2 --with-included-apr --enable-ldap
--enable-authnz-ldap


If I go in to srclib/apr-util  and configure apr-util manually with

 ./configure --enable-ldap --with-apr=../apr

I can build apr-util.  But then when I configure and build apache it fails.

Any ideas?

Paul

Re: [users@httpd] Apache 2.4.2 with LDAP support

Posted by Paul Reilly <pa...@tcd.ie>.
Thanks Eric - That works.
I was not aware you could pass through the configure options to the
included apr and apr-util builds.

Paul

On 4 July 2012 13:40, Eric Covener <co...@gmail.com> wrote:

> On Wed, Jul 4, 2012 at 7:36 AM, Paul Reilly <pa...@tcd.ie> wrote:
> > Hello,
> >
> > I'm having trouble building Apache 2.4.2 with LDAP support.
> > I get:
> >
> > checking for ldap support in apr/apr-util... no
> > configure: WARNING: apr/apr-util is compiled without ldap support
> > checking whether to enable mod_authnz_ldap...
> > configure: error: mod_authnz_ldap has been requested but can not be built
> > due to prerequisite failures
> >
> > I have the APR and APR source unpacked in to srclib.
> > My build directory is like this:
> >
> > ~/BUILD/httpd-2.4.2/
> > ~/BUILD/httpd-2.4.2/srclib/apr/                         (apr 1.4.6)
> > ~/BUILD/httpd-2.4.2/srclib/apr-util/                   (apr util 2.4.2)
> >
> > My configure is:
> >
> > ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-ldap
> > --enable-authnz-ldap
> >
> >
> > If I go in to srclib/apr-util  and configure apr-util manually with
> >
> >  ./configure --enable-ldap --with-apr=../apr
> >
> > I can build apr-util.  But then when I configure and build apache it
> fails.
>
> APR/APR-UTIL wants --with-ldap, if you're building the bundled
> APR/APR-UTIL you can just pass that stuff to httpd's configure.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>

Re: [users@httpd] Apache 2.4.2 with LDAP support

Posted by Eric Covener <co...@gmail.com>.
On Wed, Jul 4, 2012 at 7:36 AM, Paul Reilly <pa...@tcd.ie> wrote:
> Hello,
>
> I'm having trouble building Apache 2.4.2 with LDAP support.
> I get:
>
> checking for ldap support in apr/apr-util... no
> configure: WARNING: apr/apr-util is compiled without ldap support
> checking whether to enable mod_authnz_ldap...
> configure: error: mod_authnz_ldap has been requested but can not be built
> due to prerequisite failures
>
> I have the APR and APR source unpacked in to srclib.
> My build directory is like this:
>
> ~/BUILD/httpd-2.4.2/
> ~/BUILD/httpd-2.4.2/srclib/apr/                         (apr 1.4.6)
> ~/BUILD/httpd-2.4.2/srclib/apr-util/                   (apr util 2.4.2)
>
> My configure is:
>
> ./configure --prefix=/usr/local/apache2 --with-included-apr --enable-ldap
> --enable-authnz-ldap
>
>
> If I go in to srclib/apr-util  and configure apr-util manually with
>
>  ./configure --enable-ldap --with-apr=../apr
>
> I can build apr-util.  But then when I configure and build apache it fails.

APR/APR-UTIL wants --with-ldap, if you're building the bundled
APR/APR-UTIL you can just pass that stuff to httpd's configure.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org