configure: error: Cannot find ldap.h

The following error was getting generated while compiling PHP on the server

checking for LDAP support… yes, shared
checking for LDAP Cyrus SASL support… yes
configure: error: Cannot find ldap.h

Fix

yum install openldap-devel

Leave a comment