我正在RHEL 5上构建OpenLDAP。我使用了http://www.linux.com/archive/feature/113607上的说明。

一切顺利,直到为OpenLDAP运行'./configure'-记录了以下错误:

*<earlier output snipped>*
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6
checking number of arguments of gethostbyaddr_r... 8
checking db.h usability... yes
checking db.h presence... yes
checking for db.h... yes
checking for Berkeley DB major version in db.h... 5
checking for Berkeley DB minor version in db.h... 1
checking if Berkeley DB version supported by BDB/HDB backends... yes
**checking for Berkeley DB link (default)... no
configure: error: BDB/HDB: BerkeleyDB not available**

我像疯子一样用Google搜索,但是找不到解决方法-有关探索区域的任何提示?

谢谢

最佳答案

yum install db4-devel
(或仅安装预打包的openldap,yum install openldap-servers openldap-clients

关于redhat - 从源代码构建OpenLDAP并丢失BerkelyDB,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3848064/

10-12 01:27