Hello,
I am a new user to Openldap and I´ve been struggling to install on my RedHat box for quite some time.
I´ve googled and read past messages from this forum but i´m still unable to solve my problem which.
I have installed Berkeley Db db-5.1.25 with success but when I try to install openldap, I get the following error:
[root@redqas01 openldap-2.4.23]# ./configure ... 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
Searching this mailing list, I found some information regarding setting the LDFLAGS and CPPFLAGS for the BDB installation. So I did the following commands: (considering that the installation for the BDB was in the /usr/local directory)
LD_LIBRARY_PATH="/usr/lib:/usr/local/lib:/usr/local/BerkeleyDB.5.1/lib:/usr/local/berkeley/lib" LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.1/lib -L/usr/local/berkeley/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.5.1/include -I/usr/local/berkeley/include"
I checked the /usr/local/lib/ directory and the libdb-5* files are there. I also checked the /usr/local/include/ and the db.h file is also there.
But I still get the same error message.
Any tips?
Att
Frederick Pohl
Hi, OpenLDAP is officially supported only with BerkeleyDB versions at maximum equal to 5.0.x, and this particular version only since 2.4.24.
See http://www.openldap.org/lists/openldap-announce/201102/msg00000.html
You should try with the latest one available: 2.4.25
Hope this helps Marco
On Tue, Apr 26, 2011 at 8:09 PM, Frederick William Borges Pohl frederick.pohl@oi.net.br wrote:
Hello,
I am a new user to Openldap and I´ve been struggling to install on my RedHat box for quite some time.
I´ve googled and read past messages from this forum but i´m still unable to solve my problem which.
I have installed Berkeley Db db-5.1.25 with success but when I try to install openldap, I get the following error:
[root@redqas01 openldap-2.4.23]# ./configure
…
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
Searching this mailing list, I found some information regarding setting the LDFLAGS and CPPFLAGS for the BDB installation.
So I did the following commands: (considering that the installation for the BDB was in the /usr/local directory)
LD_LIBRARY_PATH="/usr/lib:/usr/local/lib:/usr/local/BerkeleyDB.5.1/lib:/usr/local/berkeley/lib"
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.1/lib -L/usr/local/berkeley/lib"
CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.5.1/include -I/usr/local/berkeley/include"
I checked the /usr/local/lib/ directory and the libdb-5* files are there.
I also checked the /usr/local/include/ and the db.h file is also there.
But I still get the same error message.
Any tips?
Att
Frederick Pohl
--On Thursday, April 28, 2011 11:21 AM +0200 Marco Pizzoli marco.pizzoli@gmail.com wrote:
Hi, OpenLDAP is officially supported only with BerkeleyDB versions at maximum equal to 5.0.x, and this particular version only since 2.4.24.
No. Read the change log again:
Added slapd support for BDB 5.0+ (ITS#6698)
It says 5.0+. That means 5.0 and higher. Not maximal at 5.0.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
On Tue, Apr 26, 2011 at 2:09 PM, Frederick William Borges Pohl frederick.pohl@oi.net.br wrote:
Hello,
I am a new user to Openldap and I´ve been struggling to install on my RedHat box for quite some time.
I´ve googled and read past messages from this forum but i´m still unable to solve my problem which.
[...]
Any tips?
These problems seems to be recurring on RHEL and related to version mismatches. Did you install BDB from source as well? Did you run ldconfig, try rebooting (a la Windoze)? Changing LD_LIBRARY_PATH and making sure /usr/local is first might help but usually not necessary. might be missing a stupid symlink (like a top-level .so). If you're running RHEL are there no officially supported rpm binary packages for OpenLDAP?
Best,
-- Alejandro imass
openldap-technical@openldap.org