Compiling PHP with LDAP support on Ubuntu 12.10

Posted by Andrew Ellis on Server Fault See other posts from Server Fault or by Andrew Ellis
Published on 2012-11-01T00:08:06Z Indexed on 2012/11/01 17:04 UTC
Read the original article Hit count: 431

Filed under:
|
|
|

I am trying to compile PHP on Ubuntu 12.10 with LDAP support. I have run:

apt-get install libldap2-dev

That installs the header files to /usr/include.

However, when attempting to compile it is unable to locate the header files. I have tried to with --with-ldap=/usr/include as well and it still fails with:

configure: error: Cannot find ldap.h

I also tried symlinking with the following and I still get the same error:

ln -s /usr/lib/ldap* /usr/lib/

Thanks in advance for your help.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about php