configure: error: BDB/HDB: BerkeleyDB not available
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…







September 20th, 2007 at 5:56 pm
[...] would like to post an update on our previous OpenLDAP source installation, but I encountered an error so, enough with the source thing and [...]
October 27th, 2008 at 12:14 pm
Followed the above steps but still the same error.
Please help.
November 11th, 2008 at 3:05 pm
i dont have those path:
/usr/local/Berkeley/
/usr/local/BerkeleyDB.3.3
they are even non-existing. what should i do?
January 10th, 2009 at 6:30 am
Please verify your BerkeleyDB path before saying it doesn’t work. Obviously not everyone has version 3.3. I have 4.7, myself, and had to modify the command slightly. But as long as you installed BDB successfully and point correctly, it should find the libraries needed without issue.
May 5th, 2009 at 5:49 am
I tried adding the path for the include files in the environment, but keep getting a “Permission Denied” error, even as root. any thoughts?
May 5th, 2009 at 6:13 am
nevermind, I got it. turns out I typed in the path for the include files incorrectly. Also still received the error, but fixed it with:
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