系统版本
[root@web php-5.3.27]# cat /etc/redhat-release
CentOS release 6.5 (Final)
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 ...即可
转载于:https://blog.51cto.com/327101303/1618276
本文记录了在CentOS 6.5环境中使用LNMP架构进行PHP编译安装过程中遇到的两个常见错误及解决方案。第一个问题是无法找到ldap.h文件,通过安装openldap和openldap-devel包解决。第二个问题是无法在/usr/lib中找到ldap库,通过复制libldap文件到该目录解决。
259

被折叠的 条评论
为什么被折叠?



