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

Re: RedHat method of ldap install?



----- Original Message ----- 
From: "Tim Tyler" <tyler@beloit.edu>
To: <openldap-software@OpenLDAP.org>
Sent: Monday, June 14, 2004 3:50 PM
Subject: RedHat method of ldap install?


>    Openldap and Red Hat experts.
>        We have RedHat 9L installed.  We have had a real hard time getting
> it to compile and to find the openssl C *.h libraries.   Apparently, the
> "CFLAGS = -I" command never works.  RedHat 9 has its openssl compiled such
> that the openssl .h files are in /usr/include/openssl directory which
> openldap can't find.  CFLAGS is useless in including these files.
>    So has anyone successfully compiled openldap with RedHat's openssl in
> their default directory?  Does anyone use RPM's for openldap, or do you
> stick to doing a source compile?  If so, do you completely install
openssl
> from scratch as well?  What method have RedHat 9 users successfully used
to
> install openldap with openssl?
>
> Tim Tyler
> Network Engineer - Beloit College
> tyler@beloit.edu
>
>

Tim,

I always compile OpenLDAP and underlying software (db4, openssl, cyrus-sasl)
from source. My install routine has changed little from RedHat 7.x up to FC2
and uses the stock RedHat gcc, so should still work for 9. I've left out
site specifics like init scripts stuff - YMMV:

HTH,

Colin

-------------------

db4
sudo su -
cd /usr/local/src
export LIBS="-lpthread $LIBS"
wget http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz
gunzip -c db-4.2.52.tar.gz | tar -xvf - >/dev/null
cd db-4.2.52
wget http://www.sleepycat.com/update/4.2.52/patch.4.2.52.1 -O
db-4.2.52-patch1.txt
wget http://www.sleepycat.com/update/4.2.52/patch.4.2.52.2 -O
db-4.2.52-patch2.txt
patch -p0 < db-4.2.52-patch1.txt
patch -p0 < db-4.2.52-patch2.txt
cd build_unix
../dist/configure --prefix=/usr/local --with-mutex=x86/gcc-assembly
make
make install
cd ../../
exit

openssl
sudo su -
cd /usr/local/src
wget http://www.openssl.org/source/openssl-0.9.7d.tar.gz
gunzip -c openssl-0.9.7d.tar.gz | tar -xvf - >/dev/null
cd  openssl-0.9.7d
./config --openssldir=/usr/local
make
make install
cd ../
exit

cyrus-sasl
sudo su -
cd /usr/local/src
wget ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-2.1.18.tar.gz
gunzip -c cyrus-sasl-2.1.18.tar.gz | tar -xvf - >/dev/null
cd cyrus-sasl-2.1.18
./configure --with-dbpath=/usr/local/etc/sasldb2 --with-dblib=berkeley --wit
h-bdb-libdir=/usr/local/lib --with-bdb-incdir=/usr/local/include --with-open
ssl=/usr/local --with-plugindir=/usr/local/lib/sasl2
make
make install
cd ../

openldap
sudo su -
cd /usr/local/src
gunzip -c openldap-2.2.13.tgz | tar -xvf - >/dev/null
cd openldap-2.2.13
export CPPFLAGS="-I/usr/local/include"
export LDFLAGS="-L/usr/local/lib"
./configure --prefix=/usr/local --libexecdir=/usr/local/sbin --enable-slapd 
--enable-bdb --enable-slurpd
make depend
make
make test
make install
cd ../