LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-18-2013, 03:34 AM   #1
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

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


i want install openldap-2.3.43, but error
..................................
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available


i was installed BerkeleyDB 4.4.20 :
cd ~/db-4.4.20/build_unix/
../dist/configure
make
make install

and OK!
i know this was old problem, i tried many solves on forum, but i can't my solve.....
please help me
Thanks all!
 
Old 10-18-2013, 04:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Why don't you use your distro's package manager to install BerkeleyDB and openldap?
If for some reason you want to compile them from sources, use the following to run the openldap configure script:
Code:
LDFLAGS=-L/usr/local/BerkeleyDB.4.4/lib CPPFLAGS="-D_GNU_SOURCE -I/usr/local/BerkeleyDB.4.4/include" ./configure ...
Of course you need to change the path to BerkeleyDB accordingly

Regards
 
Old 10-20-2013, 08:50 PM   #3
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi,

Why don't you use your distro's package manager to install BerkeleyDB and openldap?
If for some reason you want to compile them from sources, use the following to run the openldap configure script:
Code:
LDFLAGS=-L/usr/local/BerkeleyDB.4.4/lib CPPFLAGS="-D_GNU_SOURCE -I/usr/local/BerkeleyDB.4.4/include" ./configure ...
Of course you need to change the path to BerkeleyDB accordingly

Regards
Thank for Regards, the error was fixed, but a new error :
"The BerkeleyDB version mismatch"
I read README in opendlap-2.3.43
"BDB and HDB backends require Oracle Berkeley DB 4.2, 4.4, or 4.5"
I tried 4.2, 4.4, and 4.5 by source on oracle.com but mismatch
What's problem, how version is?
 
Old 10-21-2013, 02:07 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
"The BerkeleyDB version mismatch"
I guess you need to update LD_LIBRARY_PATH:
Code:
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.4/lib:$LD_LIBRARY_PATH
before running the openldap ./configure script
 
Old 10-21-2013, 03:29 AM   #5
tuananhk53
LQ Newbie
 
Registered: Oct 2013
Location: Hanoi Vietnam
Posts: 26

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
I guess you need to update LD_LIBRARY_PATH:
Code:
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.4/lib:$LD_LIBRARY_PATH
before running the openldap ./configure script
OK, the error is fixed
Thanks bathory very much
I'm a newbie, looking forward to your help
 
Old 10-21-2013, 04:19 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Glad to see it worked.
You may mark the thread SOLVED from the "Thread Tools" on top of the page

Regards
 
  


Reply



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
GRUB - booting windows from hdb, when hdb is bootable drive lapsio Linux - Newbie 5 09-09-2012 09:52 AM
[SOLVED] OpenLDAP Install fails. BerklyDB (configure: error: BDB/HDB: BerkeleyDB not availabl) dreco84 Linux - Server 5 10-06-2011 03:04 AM
configure: error: BDB/HDB: BerkeleyDB not available pswen Linux - Server 3 07-28-2010 12:44 AM
[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

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

All times are GMT -5. The time now is 01:47 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
Open Source Consulting | Domain Registration