Linux OpenLDAP安装-为LDIF构建配置

Linux OpenLDAP安装-为LDIF构建配置,linux,openldap,ldif,Linux,Openldap,Ldif,我想在linux、aix和sun solaris上构建openldap。我只需要在这些机器上的回归测试中使用openldap。为此,我只需要ldif。我希望避免与Oracle Berkeley DB相关的任何潜在许可问题和费用 我已经通过FTP将tar文件openldap-2.4.40.tgz下载到linux机器上。我就跑,, tar-zxvf openldap-2.4.40.tgz cd openldap-2.4.40 要配置已准备好生成的源, /配置-启用ldif=是 日志结束于 ... c

我想在linux、aix和sun solaris上构建openldap。我只需要在这些机器上的回归测试中使用openldap。为此,我只需要ldif。我希望避免与Oracle Berkeley DB相关的任何潜在许可问题和费用

我已经通过FTP将tar文件openldap-2.4.40.tgz下载到linux机器上。我就跑,, tar-zxvf openldap-2.4.40.tgz cd openldap-2.4.40

要配置已准备好生成的源, /配置-启用ldif=是

日志结束于

...
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... no
checking db.h presence... no
checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available

我可以只为LDIF构建OpenLDAP,或者至少不依赖于Oracle Berkeley DB吗?如何操作?

不再有“启用ldif”选项。默认情况下,您将获得LDIF格式。 禁用BerkeleyDB

./configure --enable-bdb=no --enable-hdb=no
make depend
make install
出于我的目的,我发现-prefix选项很有用

到目前为止,我已经能够在Linux、Solaris和AIX上构建它


但是在AIX上只能构建静态库。但这是另一个问题。

/configure-enable bdb=no-enable hdb=noNo选项-enable ldifThen make dependent and make install./configure-prefix=-enable bdb=no-enable hdb=no