Discussion:
configure: error: could not find an LDAP library
(too old to reply)
mitchell
2005-02-26 03:25:32 UTC
Permalink
Dear all,

I am trying to configure Apache version 2.0.52 enabled ldap. My
OpenLDAP is under /dir/openldap. I found configuration error. Anybody
help me please.

Here is my config command ....

env CPPFLAGS="-I/dir/openldap/include" LDFLAGS="-L/dir/openldap/lib"
./configure --prefix=/opt/apache --enable-ldap
--with-ldap=/dir/openldap

Config error ..........

checking for ldap support...
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... no
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... (cached) no
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... (cached) no
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
/export/home/mydir/httpd-2.0.52/srclib/apr-util/configure: unset:
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... (cached) no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util
Brent Kearney
2005-06-09 20:53:41 UTC
Permalink
After the Apache build bails like you describe, change into the
srclib/apr-util directory, and run:

./configure --prefix=/opt/apache \
--with-ldap-include=/dir/openldap/include \
--with-ldap-lib=/dir/openldap/lib/ \
--with-ldap=ldap --with-apr=../apr

make

Then go back to the top-level and re-run 'make'. It should finish fine.

Cheers,

Brent
--
Netmojo Systems
http://netmojo.ca
Post by mitchell
Dear all,
I am trying to configure Apache version 2.0.52 enabled ldap. My
OpenLDAP is under /dir/openldap. I found configuration error. Anybody
help me please.
Here is my config command ....
env CPPFLAGS="-I/dir/openldap/include" LDFLAGS="-L/dir/openldap/lib"
./configure --prefix=/opt/apache --enable-ldap
--with-ldap=/dir/openldap
Config error ..........
checking for ldap support...
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... no
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... (cached) no
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... (cached) no
`ac_cv_lib_/opt/openldap_ldap_init': not a valid identifier
`ac_cv_lib_/opt/openldap___ldap_init': not a valid identifier
checking for ldap_init in -l/opt/openldap... (cached) no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util
Loading...