So it turns out that to install my development environment for Zimbra that I had to install OpenLDAP. The problem is that on Mac OS X the version of the Berkeley DB that comes installed isn’t high enough for the current version of OpenLDAP. As a result, I had to dig around and find some pretty intense command line tricks. I thought I should share these just in case anyone else would need them. The following command will configure OpenLDAP properly on Mac OS X.

env CPPFLAGS=”-I{/path/to/install/BerkeleyDB}/include” \
LDFLAGS=”-L{/path/to/install/BerkeleyDB}/lib” \
./configure –prefix={/path/to/install}/openldap-{version number]