Unix Like

Problems “LDAP SASL check failed”, “LDAP build check failed” & “Cannot find ldap libraries in /usr/lib” solved

Linux发行版本: Debian Jessie

吃一堑,长一智。

要么不要编译OpenLDAP,编译了就别把自己编译的lib库放到/usr/lib,/lib……,弄个prefix。

删掉所有ldap库:

find /usr/lib/ /lib /lib64 /usr/include/ /usr/local/lib /usr/local/include/ \( -name "*ldap*.so*" -o -name "*ldap*.h*" -o -name "*liblber*.so*" \) -exec rm -f {} \;

重新安装:

apt-get -y install --reinstall libsasl2-dev libsasl2-modules-ldap libldap-2.4-2 libldap2-dev libldb-dev

连接/usr/lib/x86_64-linux-gnu的ldap库到/usr/lib:

ln -sf /usr/lib/x86_64-linux-gnu/libldap* /usr/lib/ ; ln -sf /usr/lib/x86_64-linux-gnu/liblber* /usr/lib/

然后继续configure PHP吧。

2 Comments

101 Posts

自信、努力、活出精彩;以前未所见的颜色,绘大千世界!
View all posts

2 thoughts on “Problems “LDAP SASL check failed”, “LDAP build check failed” & “Cannot find ldap libraries in /usr/lib” solved”

Leave a reply

Your email address will not be published. Required fields are marked *