php5 ldap library,PHP :: Bug #49876 :: configure fails --with-ldap Cannot find ldap libraries in /us...

[2009-10-14 14:59 UTC] graham dot simpson at hsbcib dot com

Description:

------------

64bit SuSE 10.2 with openldap2-2.3, openldap2-devel-2.3 installed.

Configure --with-ldap fails with:

checking for LDAP support... yes

checking for LDAP Cyrus SASL support... no

configure: error: Cannot find ldap libraries in /usr/lib.

-

rpm -q -l openldap2-devel

/usr/include/lber.h

/usr/include/lber_types.h

/usr/include/ldap.h

/usr/include/ldap_cdefs.h

/usr/include/ldap_features.h

/usr/include/ldap_schema.h

/usr/include/ldap_utf8.h

/usr/include/slapi-plugin.h

/usr/lib64/liblber.a

/usr/lib64/liblber.so

/usr/lib64/libldap.a

/usr/lib64/libldap.so

/usr/lib64/libldap_r.a

/usr/lib64/libldap_r.so

-

Should be looking in /usr/lib64. Which is odd because my LD_LIBRARY_PATH contains /usr/lib64.

-

Altering --with-ldap to --with-ldap=/usr or /usr/lib64, then complains about not finding the ldap.h, viz:

checking for LDAP support... yes

checking for LDAP Cyrus SASL support... no

configure: error: Cannot find ldap.h

-

The problem seems to be the configure script find ldap.h in /usr/include/ldap.h, so sets LDAP_LIBDIR=/usr/lib (line 52114), later it looks for /usr/lib/liblber.a instead of /usr/lib64/liblber.a.

-

Maybe I've got that wrong. The weird thing is I know other directives in my configure are picking up stuff from /usr/lib64.

-

Thanks for any help you can give.

GSi

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值