Saturday, May 5, 2012

Compile Error: BerkeleyDB not available

I'm compiling openldap when suddenly compiling stops
checking db.h usability... no
checking db.h presence... no
checking for db.h... no
configure: error: BDB/HDB: BerkeleyDB not available
To resolve, you need to install db-5. If you still encounter the issue despite having db-5 installed on the system, try to export the ff:
CPPFLAGS="-I/usr/local/BerkeleyDB.5.3/include"
export CPPFLAGS
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.5.3/lib -R/usr/local/BerkeleyDB.5.3/lib"
export LDFLAGS
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.5.3/lib"
export LD_LIBRARY_PATH
Then compile again.

No comments:

Post a Comment