Compiling PHP w/ LDAP Support

davef8

Verified User
Joined
Feb 20, 2004
Messages
48
Location
Los Angeles
When compiling PHP with LDAP support we get the following error:

checking for LDAP support... yes
configure: error: Cannot find ldap.h


We've tried all the suggestions we could find searching the net for this error but nothing seems to help.

Openldap is installed in /usr/local/etc/openldap

In configure.php we have

--with-ldap=/usr/local/etc/openldap

The file ldap.h is located in:
/usr/local/include/ldap.h

The file libldap.so is located in:
/usr/lib/libldap.so
/usr/local/lib/libldap.so

echo $LD_LIBRARY_PATH
/usr/local/include:/usr/local/lib:/usr/lib

OS is RHEL V3.

Any suggestions?
 
Well it turns out some basic trial and error solved this one.

In configure.php we changed this

--with-ldap=/usr/local/etc/openldap

to

--with-ldap \
--with-ldap-dir=/usr/local/etc/openldap \

That did it, problem solved!
 
Back
Top