Hi,
OpenLDAP 2.4 support db version >= 4.4
For details: http://www.openldap.org/doc/admin24/appendix-recommended-versions.html You have to install db manually from oracle. Here is my installation procedure. Please change prefix as you wish.
cd /root/ wget http://download.oracle.com/berkeley-db/db-4.7.25.tar.gz tar zxvf db-4.7.25.tar.gz cd db-4.7.25
You have to install patches for stability issues.
wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch... wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch... wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch... wget http://www.oracle.com/technology/products/berkeley-db/db/update/4.7.25/patch... patch -p0 < patch.4.7.25.1 patch -p0 < patch.4.7.25.2 patch -p0 < patch.4.7.25.3 patch -p0 < patch.4.7.25.4
cd build_unix/ ../dist/configure --prefix=/usr/local/db4 make make install
wget ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.20.tgz tar zxvf openldap-2.4.20.tgz cd openldap-2.4.20 export CPPFLAGS="-I/usr/local/db4/include" export LDFLAGS="-L/usr/local/db4/lib -R/usr/local/db4/lib" export LD_LIBRARY_PATH=/root/db-4.7.25/build_unix/.libs ./configure --with-whatever-your-options make make install
On Mon, Jan 11, 2010 at 7:24 PM, Diego Lima lists@diegolima.org wrote:
Hello all,
I've recently installed OpenLDAP 2.4.21 on a couple of Debian servers but I ran into problems while trying to install on some RHEL5 servers:
checking db.h usability... yes checking db.h presence... yes checking for db.h... yes checking for Berkeley DB major version in db.h... 4 checking for Berkeley DB minor version in db.h... 3 checking if Berkeley DB version supported by BDB/HDB backends... no configure: error: BerkeleyDB version incompatible with BDB/HDB backends
It seems that it doesn't like Red Hat's shipped version of Berkeley DB (Version: 4.3.29). I installed it via yum (yum install db4-devel). How can I get around this problem?
Thanks a lot,
-- Diego Lima