[root@server]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
LNMP编译安装PHP的过程中报错:
第一个报错:
configure: error: Cannot find ldap.h
解决办法:
yum install openldap openldap-devel -y
第二个报错:
configure: error: Cannot find ldap libraries in /usr/lib
解决办法:
cp -frp /usr/lib64/libldap* /usr/lib/
然后再./configure …即可