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.
sudo apt-get install php5-ldap
php5-ldap
installsphp5-common
, which for some reason installs PHP 5.4.6~ubuntu CLI. I'm compiling PHP 5.4.8 from source.