我想在 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?怎么办?
最佳答案
不再有enable-ldif选项。默认情况下您会获得 LDIF 格式。 禁用 BerkeleyDB
./configure --enable-bdb=no --enable-hdb=no
make depend
make install
出于我的目的,我发现 --prefix 选项很有用。
到目前为止,我已经能够在 Linux、Solaris 和 AIX 上构建它。
但在 AIX 上只能构建静态库。但这是另一个问题。
关于linux - OpenLDAP 安装 - 为 LDIF 构建配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26351841/