免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: bjhb
打印 上一主题 下一主题

[ldap] 我的openldap怎么不能通过make test [复制链接]

论坛徽章:
0
21 [报告]
发表于 2005-07-17 14:27 |只看该作者

我的openldap怎么不能通过make test

Please download and use the latest stable release of OpenLDAP, i.e. 2.2.26 from http://www.openldap.org.

2.1.19 is history.

Gary

论坛徽章:
0
22 [报告]
发表于 2005-07-17 22:25 |只看该作者

我的openldap怎么不能通过make test

原帖由 "reallyroot" 发表:
我做了好多天,今天终于过了,基本如下:
rh enterprise3,顺序:cyrus-sasl2.1.20->;bdb4.3->;openldap2.2.26,
每次安装都是make test出错,我系统中有本身带的openldap,bdb4.2等,但也没卸载,看了好多文章,首先:
c..........


如果以前系统里安装过。。。删除。。
rm -fr /usr/lib/sasl
echo /usr/local/lib/sasl2 >;>; /etc/ld.so.conf
ldconfig
OK...

我安装的时候用的都是最新版。

论坛徽章:
0
23 [报告]
发表于 2005-07-18 15:30 |只看该作者

我的openldap怎么不能通过make test

All,

The files /usr/lib/sasl are most likely used by RedHat other software components, eg: sendmail/imapd, removing them may break these dependent softwares.

At the time of error, look at the testrun log file:

$ cat tests/testrun/slapd.1.log
...
slap_sasl_init: SASL library version mismatch: expected 2.1.21, got 2.1.19.
...

Then check:

$ ldd servers/slapd/slapd | grep sasl

If it shows:
       libsasl2.so.2 =>; /usr/lib/libsasl2.so.2 (0x001ec000)

That means it had linked the old 2.1.19 version of /usr/lib/libsasl2.so.2, instead of /usr/local/lib/libsasl2.so.2

So you know you are missing "/usr/local/lib" in "./configure".

To resolve this:

1) After instaling latest version of cyrus-sasl-2.1.21, create a link for sasl2:

# cd /usr/lib
# ln -s /usr/local/lib/sasl2 sasl2

2) There is no need to edit /etc/ld.so.conf and run "ldconfig", you can instruct ./configure to use the correct LD_LIBRARY_PATH, CPPFLAGS and LDFLAGS, below (ONE LINE) is an example, it assumes BDB, OpenSSL and Cyrus SASL are all linked from /usr/local hierchy

env LD_LIBRARY_PATH="/usr/local/lib:/usr/local/lib/sasl2:/usr/local/BerkeleyDB.4.2/lib:/usr/local/ssl/lib" LDFLAGS="-L/usr/local/lib -L/usr/local/lib/sasl2 -L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib -R/usr/local/lib -R/usr/local/lib/sasl2 -R/usr/local/BerkeleyDB.4.2/lib -R/usr/local/ssl/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.2/include -I/usr/local/ssl/include" ./configure --enable-bdb --enable-ldbm --enable-ldap --enable-meta --enable-crypt --with-tls --with-cyrus-sasl

3) Please use BDB 4.2.52 + 2 patches as BDB 4.3.XX is not yet confirmed stable when used with OpenLDAP 2.2.2X/2.3.X by the OpenLDAP development team.

Gary

论坛徽章:
0
24 [报告]
发表于 2006-07-13 17:39 |只看该作者
我发现我也遇到这个问题,不过现在终于解决了,是sasl版本不匹配造成的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP