I\'m building OpenLDAP on a RHEL 5; I used instructions found at http://www.linux.com/archive/feature/113607.
All went well, until running \'./configure\' for OpenLDAP -
For CentOS 7, do yum install libdb-devel. libdb4-devel did not work for me.
yum install libdb-devel