httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: FW: [users@httpd] help on compile 2.2.17 with ldap support
Date Mon, 27 Dec 2010 22:14:20 GMT
Hi David,

On 27.12.2010 22:32, David Long wrote:

Please keep the discussion on list.

> Thanks for your help to point me to apr and apr-util.
> Do you know the config switch for ldap support in apr-util?
> On Apache websie, it says.
> # Build and install apr 1.2
> cd srclib/apr
> ./configure --prefix=/usr/local/apr-httpd/
> make
> make install
> # Build and install apr-util 1.2
> cd ../apr-util
> ./configure --prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr-httpd/
> make
> make install

Latest APR ist 1.4.2, latest APR-UTIl ist 1.3.10, see

To learn about possible configure flags it always is a good idea to run

./configure --help

If you do that for apr-util, you would see e.g.

Optional Packages:
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   --with-lber=library     lber library to use
   --with-ldap-include=path  path to ldap include files with trailing slash
   --with-ldap-lib=path    path to ldap lib file
   --with-ldap=library     ldap library to use

Yes, the help output could be a bit more explicit, but to build apr-util 
with ldap support based on the OS provided ldap libraries, you would 
simply add "--with-ldap" to the apr-util confugure flags.

> # Configure httpd
> cd ../../
> ./configure --with-apr=/usr/local/apr-httpd/ --with-apr-util=/usr/local/apr-util-httpd/

Here you have to choose the apr and apr-util paths where you instaled 
the new apr resp. apr-util.

> It doesn't tell me how to build for ldap support.
> Is it just "--enable-ldap --enable-authnz-ldap"?


> Also in httpd configure, Will I still need --prefix=/www/apache2? Or /usr/local/apr-httpd
is my apache home directory.

You don't need it, but you might want it. It tells the build process, 
into which directory you want to install the result. Same when calling 
configure for apr and apr-util.



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message