[Date Prev][Date Next] [Chronological] [Thread] [Top]

Building OpenLdap



Hi,

I have built OpenLDAP 2.2.15 with berkeley DB and Cyrus.SASL.
This is what I have done :

#Build Berkeley
#patchen mit: patch -p0 < patch.4.2.52.2
cd /usr/exchange/db-4.2.52.NC/build_unix
../dist/configure
make
make install

#Build Cyrus

cd /usr/local/dev/re/openldapsetup/ext/cyrus-sasl-2.1.19

./configure --disable-sample --without-dblib --without-pam --without-des --d
isable-des --with-saslauthd=/var/run --disable-checkapop --disable-cram --di
sable-digest --disable-otp --disable-anon --enable-plain --enable-login --en
able-gssapi=/usr/local --with-plugindir=/usr/local/lib/sasl2

make
make install
ln -s /usr/local/lib/sasl2 /usr/lib/sasl2


#OpenLDAP

cd /usr/local/dev/re/openldapsetup/
cd /usr/local/dev/re/openldapsetup/2215/openldap-2.2.15
env
CDPATH=: \
LD_RUN_PATH="/usr/local/BerkeleyDB.4.2/lib:/usr/lib/sasl2"
\
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.2/lib:/usr/lib/sasl2"
\
CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include -I/usr/include/sasl" \
LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib -L/usr/lib/sasl2" \
./configure \
--prefix=/usr/local/dev/re/openldap2215 \
--libexecdir=/usr/local/dev/re/openldap2215/sbin \
--sysconfdir=/usr/local/dev/re/openldap2215/etc \
--localstatedir=/usr/local/dev/re/openldap2215/var \
--mandir=/usr/local/dev/re/openldap2215/man \
--enable-syslog \
--disable-ipv6 \
--enable-slapd \
--enable-cleartext \
--enable-crypt \
--enable-spasswd \
--enable-bdb \
--enable-ldbm \
--enable-monitor \
--with-cyrus-sasl

make depend
make
make install

Best regards