Click to See Complete Forum and Search --> : PHP 5.2.2 and ldap.h Problem


ashley
05-08-2007, 08:03 PM
Hello,

I am trying to upgrade PHP 4.3.9 to version 5.2.2. My problem is I need the --with-ldap=shared option enabled, but I keep running into the same error message every time:

checking for crypt in -lcrypt... yes
checking whether build with IMAP works... yes
checking for InterBase support... no
checking whether to enable JavaScript Object Serialization support... yes
checking for ANSI C header files... (cached) yes
checking for LDAP support... yes, shared
checking for LDAP Cyrus SASL support... no
configure: error: Cannot find ldap.h

ldap.h does exist though in /usr/include/ and I have even tried modifying the option to --with-ldap=shared,/usr/include/ but I still end up with the same error message.

I am using RedHat Linux v4 and OpenLDAP. I have also installed the openldap-devel rpm. I am not sure what I should do from here, any information would be greatly appreciated. Thank you!

~Ashley

ashley
05-10-2007, 01:20 PM
I tried upgrading to the latest openldap, but I still have the same error. Can somebody please tell me if openldap and PHP 5.2.2 are even compatible? If so, why is this not working? Thanks!