Saturday, January 1, 2011

configure: error: BDB/HDB: BerkeleyDB not available

Hello Friends,

Today morning while installing OpenLDAP I was getting error like :
configure: error: BDB/HDB: BerkeleyDB not available

I checked, googled and found-

from read me:
BDB and HDB backends require Oracle Berkeley DB 4.4, 4.5,
4.6, 4.7, or 4.8. It is highly recommended to apply the
patches from Oracle for a given release.

And then I installed Berkeley DB and set these environment variables..
CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include"
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib -R/usr/local/BerkeleyDB.4.8/lib"
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.8/lib"

export CPPFLAGS LD_LIBRARY_PATH LDFLAGS

Then everything worked fine...

just ran
./configure
make depend
make
sudo make install

Cheers!!!

Ravi Kumar Gupta aka D'Maverick

4 comments:

  1. Thank you dude... That helped a lot :)

    ReplyDelete
  2. I have installed BDB 4.8 and also exported path as mentioned above but still getting error:
    checking for db.h... no
    configure: error: BDB/HDB: BerkeleyDB not available
    Please help. I am new in Ldap.

    Thanks in advance -- Rajesh

    ReplyDelete

Note: Only a member of this blog may post a comment.