Home >Backend Development >PHP Tutorial >The configure: error: Cannot find ldaph error occurred when installing the extension library on the LAMP platform
An error occurred when installing the ldap extension package;
configure: error: Cannot find ldap.h
This is a missing configuration file, but use the yum command to install this configuration,
If you don’t know the installation configuration name, first use: yum search openldap command to find the file first,
Then execute yum install command according to the actual file name:
yum install openldap.i386
yum install openldap-devel.i386
When I was installing, I could search for the file, but could not install the file;
At first I always thought that I was using a local image file instead of a network source The problem;
Later I found out that I made the mistake of mounting the image file myself. The file that needs to be installed is in the image file No. 1, but I always mounted the file No. 2
Finally, the file No. 2 was mounted. Use the umount command to cancel the image file and then use mount to mount the image file No. 1. Then install the configuration file and install ldap according to the normal process. The specific installation process is not I wrote it, but I don’t quite understand it myself. Anyway, I copied it, but the above problem just occurred
The above introduces the configure: error: Cannot find ldaph error when installing the extension library on the LAMP platform, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.