My open-ldap does not detect berkeley db.
When I wanted to install open-ldap, I got the following message:
Code:
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
Google search gave me some hint:
Code:
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
In my installation: berkley db is installed in /usr/local/
So I changed [CPPFLAGS="-I/usr/local/BerkeleyDB.4.3/include"]
to [CPPFLAGS="-I/usr/local/include"] and so on.
Yet, I still get
configure: error: BDB/HDB: BerkeleyDB not available
Env: open-ldap 2.4.43 and berkely db 5.2.28.
Chance of version mismatch?