SysAdmin Blog, TechTips and Reviews

A Unix System Administrator’s Blog

configure: error: BDB/HDB: BerkeleyDB not available

September 2nd, 2007 by elizar

After installing the required prerequisite for OpenLDAP installation, I ran into my first error in running the configure script:

checking db.h usability… no
checking db.h presence… no
checking for db.h… no
configure: error: BDB/HDB: BerkeleyDB not available

At first, I thought this was just a case of $PATH not set up properly (since /usr/local) in not in the path by default). After setting up the path:

# echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/BerkeleyDB.3.3:/usr/local/BerkeleyDB.3.3/bin:/usr/local/BerkeleyDB.3.3/include/
#

I still have the error.

I then added the path for the include files in the env

env CPPFLAGS=-I/usr/local/Berkeley/include

Did the configure and…

checking for db.h… yes

That fixed…

Next error… :D

Filed under Installation, LDAP Installation having

3 Responses

  1. OpenLDAP Installation Using Packages (pkgadd) : System Administrators’ Blog Says:

    […] would like to post an update on our previous OpenLDAP source installation, but I encountered an error so, enough with the source thing and […]

  2. mark Says:

    Followed the above steps but still the same error.

    Please help.

  3. t8mas Says:

    i dont have those path:
    /usr/local/Berkeley/
    /usr/local/BerkeleyDB.3.3

    they are even non-existing. what should i do?

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.