LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-27-2010, 10:42 PM   #1
pswen
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 ?
Thanks!
 
Old 07-27-2010, 11:02 PM   #2
smoker
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-27-2010, 11:38 PM   #3
pswen
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Original Poster
Rep: Reputation: 0
[root@mail openldap-2.4.23]# echo $CPPFLAGS
-I/usr/local/BerkeleyDB.5.0/include
[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
/usr/local/BerkeleyDB.5.0/lib


first thanks
maybe everyone understand your mean,

sorry, but i want to deal with problem,
thanks again
 
Old 07-28-2010, 12:44 AM   #4
jamrock
Member
 
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/ld.so.conf.

/usr/local/BerkeleyDB.4.2/lib
/usr/local/BerkeleyDB.4.2/include

You file should look similar to:

include ld.so.conf.d/*.conf
/usr/local/BerkeleyDB.4.2/lib
/usr/local/BerkeleyDB.4.2/include

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.
 
  


Reply


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 07:44 PM
centos 5.3, openldap-2.4.16, error: BDB/HDB: BerkeleyDB not available ajay888 Linux - Software 5 07-03-2009 10:41 AM
configure error: configure: error: cannot execute: /usr/local/bin/arm-apple-darwin-ld GunNam Linux - General 0 10-24-2008 08:26 PM
error on linux load hdb not ready GJgrafix Linux - Hardware 1 11-29-2003 10:45 AM
removing hdb and not getting error messages...??? JaseP Linux - Hardware 2 11-24-2002 11:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:33 AM.

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