Compiling OpenLDAP on Solaris


Tags:
compiling openLDAP 2.2.23 on solaris 8
-------------------------------------

pre-requisites:

Berkley DB
openSSL (compiled as shared)
tcp wrappers
autoconf
automake

for compile:

setenv CC gcc
setenv LD_LIBRARY_PATH /usr/local/BerkeleyDB.4.3/lib:/usr/local/lib:/usr/lib:/usr/local/ssl/lib
setenv LDFLAGS "-L/usr/local/BerkeleyDB.4.3/lib -R/usr/local/BerkeleyDB.4.3/lib"
setenv CPPFLAGS "-I/usr/local/BerkeleyDB.4.3/include" 

./configure --enable-wrappers --with-tls

# if you receive this error:
--- configure: error: Could not locate TLS/SSL package ---

try this:
cp -R /usr/local/ssl/include/openssl /usr/include


make depend
make
make test
make install