LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-12-2011, 12:29 PM   #1
x201s
Member
 
Registered: Dec 2010
Posts: 67

Rep: Reputation: 0
berkeley db not available


My open-ldap does not detect berkeley db.
When I wanted to install open-ldap, I got the following message:

Code:
checking for Berkeley DB major version in db.h... 5
checking for Berkeley DB minor version in db.h... 2
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
Google search gave me some hint:
Code:
CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include"
export CPPFLAGS
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.3/lib -R/usr/local/BerkeleyDB.4.3/lib"
export LDFLAGS
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.3/lib"
export LD_LIBRARY_PATH
In my installation: berkley db is installed in /usr/local/
So I changed [CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include"]
to [CPPFLAGS="-I/usr/local/include"] and so on.

Yet, I still get
configure: error: BDB/HDB: BerkeleyDB not available

Env: open-ldap 2.4.43 and berkely db 5.2.28.
Chance of version mismatch?
 
Old 07-12-2011, 04:05 PM   #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,
Quote:
Env: open-ldap 2.4.43 and berkely db 5.2.28.
Chance of version mismatch?
What is the default BerkeleyDB package available for your distro? If it's db-5.2.28, why don't you use that? Besides the configure script prints a "version mismatch" when it finds more than 1 BerkelyDB installations.
Anyway, check /usr/include/db.h (usually a symlink to the real db.h) to find the version
Code:
grep DB_VERSION /usr/include/db.h
If it's not what you want move it to a safe place and create a symlink to the db.h of the BerkeleyDB you want to use. e.g.
Code:
ln -s /usr/local/BerkeleyDB.4.3/include/db.h /usr/include
 
Old 07-15-2011, 03:34 AM   #3
x201s
Member
 
Registered: Dec 2010
Posts: 67

Original Poster
Rep: Reputation: 0
successful!

bathory:
Thank you for the tips. Particularly this:
Quote:
create a symlink to the db.h of the BerkeleyDB you want to use
The default BerkeleyDB package was 4.3.29 and my db.h was pointing to that one.
That opened the gate to my rescue

I needed two steps.

(1) do as your tip says
(2) plus, change the link for libraries.

If just (1), I went from "not finding bdb" to "version mismatch".
Once I copied the lib files to /usr/lib, and pointed the lib files to use the version I wanted to use, everything worked fine!

Feel so good now-- yet I can't forget the hopelessness I felt. Thanks to tips like yours and others, and also thanks to Google.
 
  


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
I need help installing Berkeley DB wendea Linux - Software 8 05-15-2007 10:58 AM
How to Upgrade Berkeley DB 4.0 to 4.5 menonsudhir Linux - Server 2 02-21-2007 10:37 PM
how to get Berkeley DB Sailesh Linux - Software 1 08-01-2006 04:20 AM
Berkeley DB aesthete Linux - Software 1 02-12-2005 09:07 AM
Perl and Berkeley db zolley Linux - Newbie 0 06-07-2004 05:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

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