This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
执行
yum install db4-devel
(或者只安装预打包的openldap,
yum install openldap-servers openldap-clients
do
yum install db4-devel
(or just install the prepackaged openldap,
yum install openldap-servers openldap-clients
看来您正在使用 tarball 安装,首先您应该安装 Berkeley DB。您可以从 Oracle 网站 Oracle Berkeley DB Downloads 找到它。编译并安装它。
这将安装 BerkeleyDB。现在您需要提供成功编译 OpenLDAP 的位置。
如果您没有设置
RPATH
,那么您应该将LD_LIBRARY_PATH
添加到/etc/profile。编译 OpenLDAP 后,如果您遇到任何问题,请告诉我。
Seems you are using tarball installation, first you should install Berkeley DB. You can find it from oracle website at Oracle Berkeley DB Downloads. Compile and install it.
This will install BerkeleyDB. Now you need to provide the location to successfully compile OpenLDAP.
If you don't set
RPATH
then you should addLD_LIBRARY_PATH
to /etc/profile.After this compile OpenLDAP, let me know if you face any issue.
对于 CentOS 7,执行
yum install libdb-devel
。 libdb4-devel 对我不起作用。For CentOS 7, do
yum install libdb-devel
. libdb4-devel did not work for me.德班尝试:
debian try:
apt-get install libdb-dev 在 Ubuntu Server 中为我工作。
apt-get install libdb-dev worked for me in Ubuntu Server.