Compiling openldap on Solaris hosts

Building OpenLDAP on Solaris hosts that use /opt as their software repository can sometimes be a chore. In case anyone finds this useful, here is the procedure I use:

$ LD_LIBRARY_PATH=/opt/openssl/lib:/opt/BerkeleyDB/lib:/usr/sfw/lib:/usr/lib
$ export LD_LIBRARY_PATH

$ export LDFLAGS=”-L/opt/BerkeleyDB/lib -L/opt/openssl/lib”
$ export LDFLAGS

$ export CPPFLAGS=”-I/opt/BerkeleyDB/include -I/opt/openssl/include”
$ export CPPFLAGS

$ configure –prefix=/opt/openldap-2.3.24 –enable-bdb –with-tls –enable –monitor –disable-ipv6

$ make depend && make

3 Comments

Derek Crudgington  on January 13th, 2007

No Sun ONE LDAP?

matty  on January 13th, 2007

I use Sun’s LDAP server at work, but it’s a bit overkill for home use.

Daniel Feenberg  on November 30th, 2008

I think it is harder than the above suggests. We spent quite a bit of time on the OpenLDAP client under Solaris 10 and did not get a fully working system. We did post details here

Leave a Comment