Installation of openldap latest version on centos and rhel need little bit extra effort. I tried to install openldap 2.4.23 after downloading it from http://www.openldap.org/software/download/
. Going through README file of downloaded openldap source directory, i noticed that it require BDB 4.4 upto 4.8 version, which is not present in my centos system . So i downloaded BDB 4.8 from http://www.oracle.com/technetwork/database/berkeleydb/downloads/index-082944.html
. I installed BDB4.8 successfully in /usr/local directory then i tried to install openldap by moving to /usr/local/src/openldap-2.4.23
root# LDFLAGS=-L/usr/local/BerkeleyDB.4.8/lib CPPFLAGS=”-D_GNU_SOURCE -I/usr/local/BerkeleyDB.4.8/include” ./configure –enable-overlays
I found following error after issueing above command ‘Berkeley DB version mismatch’
Then i issued following given command to overcome that error
Here db-4.8.. is directory which i downloaded to install BDB4.8
Then configure worked sucessfully.