LDAP - Compiling PHP

software development

#1

I’m trying to get PHP working with LDAP support (in addition to cURL, mySQL, et. al.) and am unable to get it to work. I tried using the script on the wiki and adding “–with-ldap” but it chucked up errors and I wasn’t sure of what to do next. Can anybody help me out (or perhaps have a binary of their own with LDAP support enabled)?

Thanks.
az


#2

You need LDAP client libraries in order to get PHP to compile with ldap. Check out the LDAP page on php.net for more info. A search for LDAP in the “funciton list” on www.php.net will take you right there: http://us2.php.net/manual/en/ref.ldap.php


yerba# rm -rf /etc
yerba#


#3

I guess I can’t figure it out. I’m getting “Cannot find ldap.h” which is weird because I looked in the directory and ldap.h was there, and I copied it into my path just in case.

Any more ideas?
az


#4

Which path? Cause when dealing with libraries, your path variable is LD_LIBRARY_PATH not PATH.


yerba# rm -rf /etc
yerba#