大大们,请教ldap这个lib放在哪里了?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
loneil
帖子: 4
注册时间: 2010-09-24 19:16

大大们,请教ldap这个lib放在哪里了?

#1

帖子 loneil » 2012-11-01 18:14

RT

版本:
ubuntu 12.04 LTS

起因:
在编译一个lnmp
php5.4.8
mysql5.5.28
nginx1.3.8

期间编译完毕mysql和nginx后
在配置php过程中

代码: 全选

checking for ANSI C header files... (cached) yes
checking for LDAP support... yes
checking for LDAP Cyrus SASL support... yes
configure: error: Cannot find ldap libraries in /usr/lib.

代码: 全选

$ whereis ldap
ldap: /etc/ldap /usr/include/ldap.h /usr/share/man/man3/ldap.3.gz
请问这个ldap的库在哪里,好让我指向他们啊。。。
hero0524
帖子: 13
注册时间: 2011-02-22 10:23

Re: 大大们,请教ldap这个lib放在哪里了?

#2

帖子 hero0524 » 2015-08-25 13:19

代码: 全选

cd /usr/lib/x86_64-linux-gnu #如果是32位系统,目录是/usr/lib/i386-linux-gnu
sudo ln -s /usr/include/ldap.h ldap.h

代码: 全选

#编译ldap扩展
./configure --with-php-config=/usr/local/php/bin/php-config --with-ldap=/usr/lib/x86_64-linux-gnu
......(以下照常)
回复