LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-19-2011, 01:08 PM   #1
dreco84
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
Unhappy OpenLDAP Install fails. BerklyDB (configure: error: BDB/HDB: BerkeleyDB not availabl)


OpenLDAP Install fails. BerklyDB (configure: error: BDB/HDB: BerkeleyDB not availabl)
Hi all,

Im new to this so sorry if its already asked.

I am facing a issue here.

Trying to install OpenLDAP on "Red Hat Enterprise Linux Server release 5.2 (Tikanga)".

Kernel : Linux tom.acecorp.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux

OpenLADP version : openldap-2.4.23

BerkleyDB version : db-5.2.28


BDB was installed properly but unable to install OpenLDAP. Here is where I get an error when I run "./configure" ,

-------------

checking for thr_yield... no
checking for pthread_kill... yes
checking for pthread_rwlock_destroy with <pthread.h>... yes
checking for pthread_detach with <pthread.h>... yes
checking for pthread_setconcurrency... yes
checking for pthread_getconcurrency... yes
checking for thr_setconcurrency... no
checking for thr_getconcurrency... no
checking for pthread_kill_other_threads_np... no
checking for LinuxThreads implementation... no
checking for LinuxThreads consistency... no
checking if pthread_create() works... yes
checking if select yields when using pthreads... yes
checking for thread specific errno... yes
checking for thread specific h_errno... yes
checking for ctime_r... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for gethostbyname_r... yes
checking for gethostbyaddr_r... yes
checking number of arguments of ctime_r... 2
checking number of arguments of gethostbyname_r... 6
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... 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

------------------

After running through a few posts on the net regarding this I tried the following,

-------

CPPFLAGS="-I/usr/local/BerkeleyDB.5.2/include/"
export CPPFLAGS

LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.2/lib/ -R/usr/local/BerkeleyDB.5.2/lib/"
export LDFLAGS

LD_LIBRARY_PATH="/usr/local/BerkeleyDB.5.2/lib/"
export LD_LIBRARY_PATH

----------

But still no Luck.

Also tried adding "/usr/local/BerkeleyDB.5.2/lib/" to PATH. but still the error persists.

Please help me understand what I am doing wrong.

Thanks and regards,

Ankur.
 
Old 09-19-2011, 02:38 PM   #2
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
You shouldn't have to compile any of that yourself. Have you contacted RedHat about this? Running a licensed RedHat server entitles you to support from them. (They should have a tool to install it for you.)
 
Old 09-19-2011, 02:45 PM   #3
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 82

Rep: Reputation: 30
Hi

configure found your Berkeley DB, but fails to use it when checking link
Quote:
Originally Posted by dreco84 View Post
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... 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
The answer is in OpenLDAP FAQ-O-Matic (see last entry)
http://www.openldap.org/faq/data/cache/1113.html

Cheers
 
1 members found this post helpful.
Old 10-05-2011, 06:56 PM   #4
dreco84
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi cendryon,

Thanks for pointing that out. I followed the link and tried to understand what was given there. But i was unable to execute the "setenv LIBS -ldb" line as the setenv binary was not installed on my machine.

So instead of that I did the following

LIBS="-ldb -lgcc_s"
export LIBS

and along with this I also tried using a older BDB version that I had downloaded earlier. This time it was - db-5.1.19

and the final modifications that I had done to my variables were as follows;

--------------------------------------

PATH="$PATH:/Program-Files/db-5.1.19/lib/"
echo $PATH

CPPFLAGS="-I/Program-Files/db-5.1.19/include/"
export CPPFLAGS

LDFLAGS="-L/usr/local/lib -L/Program-Files/db-5.1.19/lib/ -R/Program-Files/db-5.1.19/lib/"
export LDFLAGS

LD_LIBRARY_PATH="/Program-Files/db-5.1.19/lib/"
export LD_LIBRARY_PATH

CFLAGS="-I/Program-Files/db-5.1.19/include/ -I/usr/local/include -I/usr/include"
export CFLAGS

LIBS="-ldb -lgcc_s"
export LIBS

------------------------------------

FYI .. i have installed my BDB and OpenLDAP packages in /Program-Files/ directory.


And once this was done it got executed like a charm.

So once again, Thanks to cendryon and travisdh1 for your time.

Thanks fr the Help ....
 
Old 10-06-2011, 03:25 AM   #5
cendryon
Member
 
Registered: Aug 2005
Location: France
Distribution: Slackware64 current
Posts: 82

Rep: Reputation: 30
You're welcome

Don't forget to mark the thread SOLVED (Thread tools at the top of the page) to help others find it

Cheers
 
Old 10-06-2011, 04:04 AM   #6
dreco84
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Roger that !!!!

its done ...
 
  


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
configure: error: BDB/HDB: BerkeleyDB not available pswen Linux - Server 3 07-28-2010 01:44 AM
centos 5.3, openldap-2.4.16, error: BDB/HDB: BerkeleyDB not available ajay888 Linux - Software 5 07-03-2009 11:41 AM
./configure for openLDAP fails..... rayj00 Linux - Software 2 10-01-2006 05:11 PM
Wierd error with ping WARNING: failed to install socket filter: Protocol not availabl abefroman Linux - Networking 4 03-25-2004 06:48 PM
OpenLDAP and BDB (long) GAVollink Linux - Software 1 07-24-2003 09:28 AM

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

All times are GMT -5. The time now is 06:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration