configure: error: Cannot find ldap libraries in /usr/lib. centos ou configure: error: Cannot find ldap.h

no Ubuntu
apt-get install libldap2-dev
ln -s /usr/lib/ldap* /usr/lib/


no Centos
yum install openldap-devel
ln -s /usr/lib64/libldap.so /usr/lib/libldap.so 
ln -s /usr/lib64/libldap_r.so /usr/lib/libldap_r.so


http://serverfault.com/questions/444238/compiling-php-with-ldap-support-on-ubuntu-12-10
https://forum.directadmin.com/showthread.php?t=41922
20+ common PHP compilation errors and fix – Unix

Deixe um comentário