我想在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
要配置用于构建的源代码,./configure --enable-ldif=yes
日志以;
...
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?多么?
发布于 2014-10-24 14:33:25
不再有enable-ldif选项。默认情况下,您将获得LDIF格式。禁用BerkeleyDB的步骤
./configure --enable-bdb=no --enable-hdb=no
make depend
make install出于我的目的,我发现--prefix选项很有用。
到目前为止,我已经能够在Linux、Solaris和AIX上构建它。
但是在AIX上只能构建静态库。但这是另一个问题。
https://stackoverflow.com/questions/26351841
复制相似问题