Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-27-2010, 11:42 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 27

Rep: Reputation: 0
configure: error: BDB/HDB: BerkeleyDB not available

i want install openldap server,
but display follow error messages,
i know this was old problem , but i can't ..

[root@mail openldap-2.4.23]# ls /usr/local/BerkeleyDB.5.0/
bin docs include lib
installed successful :
berkeleyDB 5.0

[root@mail openldap-2.4.23]# env CPPFLAGS="-I/usr/local/BerkeleyDB.5.0/include" LDFLAGS="-L/usr/local/BerkeleyDB.5.0/lib" ./configure
Configuring OpenLDAP 2.4.23-Release ...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking number of arguments of gethostbyaddr_r... 8
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... 0
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

have any idea ?
Old 07-28-2010, 12:02 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Does this help ?
Old 07-28-2010, 12:38 AM   #3
LQ Newbie
Registered: Dec 2008
Posts: 27

Original Poster
Rep: Reputation: 0
[root@mail openldap-2.4.23]# echo $CPPFLAGS
[root@mail openldap-2.4.23]# echo $LDFLAGS
-L/usr/local/lib -L/usr/local/BerkeleyDB.5.0/lib -R/usr/local/BerkeleyDB.5.0/lib
[root@mail openldap-2.4.23]# echo $LD_LIBRARY_PATH

first thanks
maybe everyone understand your mean,

sorry, but i want to deal with problem,
thanks again
Old 07-28-2010, 01:44 AM   #4
Registered: Jan 2003
Location: Kingston, Jamaica
Posts: 444

Rep: Reputation: 41
On some machines, OpenLDAP will not automatically find the Berkeley libraries. It is
therefore necessary to tell OpenLDAP where to find them. Linux uses the ldconfig utility to set the search path. Add the following lines to the /etc/


You file should look similar to:


Type ldconfig from the command line to update the search path. Run your configure again.

If this does not work try:

LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/lib -R/usr/local/BerkeleyDB.4.2/lib" CPPFLAGS="-I/usr/local/include -I/usr/local/BerkeleyDB.4.2/include" ./configure

This passes the locations to the configure command.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to configure hdb disk? irajjs Mandriva 21 02-13-2010 08:44 PM
centos 5.3, openldap-2.4.16, error: BDB/HDB: BerkeleyDB not available ajay888 Linux - Software 5 07-03-2009 11:41 AM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 09:26 PM
error on linux load hdb not ready GJgrafix Linux - Hardware 1 11-29-2003 11:45 AM
removing hdb and not getting error messages...??? JaseP Linux - Hardware 2 11-25-2002 12:23 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration