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

Re: ./configure on Redhat 8 -- Problems



If you want, I've a source rpm + binaries (for RH 8.0) rpms of openldap 2.1.17 in:

http://www.int-evry.fr/mci/user/procacci/SRPMS/

Mike O'Rourke wrote:
Hello Neil,

Have you tried

export CFLAGS="-I/usr/mylocal/include
-I/usr/local/BerkeleyDB4.1/include"
export LDFLAGS="-L/usr/mylocal/lib -L/usr/local/BerkeleyDB4.1/lib"
./configure ...

You *may* also run into a problem if SASL was compiled against the old
BerkeleyDB; but I do not _think_ OpenLDAP ties that strictly to SASL.
Someone with more experience with OpenLDAP would have to advise there.

Mike.


"Neil Streeter" <nstreeter@message.nmc.edu> 04/05/03 09:28pm >>>

All,

I'm trying to compile openldap2.1.17 on a Redhat 8 test machine...

The first thing I ran up against was that the RPM version of BDB was
4.0
--
insuffecient for this version of openldap... I uninstalled the RPM
version of DB4-devel (which contained the libs and include files) -- but left the
other DB4 packages in place because of dependencies with other RPM packages...



I then installed from tars DB4.1.25 into /usr/local/BerkeleyDB4.1/

I want to compile openldap agains that version... but no dice.. I have
tried to modify ld.so.conf and run ldconfig a bunch of different ways.. no
dice...


I have tried to use LD_Library_path along with env
CPPFLAGS=-I/usr/mylocal/include LDFLAGS=-L/usr/mylocal/lib a bunch of
ways... no dice...


Here is my configure command...

./configure \
--prefix=/usr/local/openldap \
--enable-ipv6=no \
--with-cyrus-sasl \
--enable-lmpasswd \
--enable-spasswd \
--enable-slp \
--enable-wrappers \
--enable-dnssrv \
--enable-monitor \
--enable-perl \
--enable-slurpd

and here is the relevent portion of the output...

checking for db.h... yes
checking for Berkeley DB link (default)... no
checking for Berkeley DB link (-ldb41)... no
checking for Berkeley DB link (-ldb-41)... no
checking for Berkeley DB link (-ldb-4.1)... no
checking for Berkeley DB link (-ldb-4-1)... no
checking for Berkeley DB link (-ldb-4)... no
checking for Berkeley DB link (-ldb4)... no
checking for Berkeley DB link (-ldb)... no
checking for Berkeley DB link (-ldb3)... no
checking for Berkeley DB link (-ldb-3)... no
checking for Berkeley DB link (-ldb2)... no
checking for Berkeley DB link (-ldb-2)... no
checking for Berkeley DB link (-ldb1)... no
checking for Berkeley DB link (-ldb-1)... no
configure: error: BDB: BerkeleyDB not available

What am I missing? or is what I am trying to do.. not possible?

Many thanks,
ns



-- Jehan Procaccia | Ingenieur Systemes & Reseaux Institut National des Telecommunications| Tel : +33 (0) 160764436 MCI, Moyens Communs Informatiques | Mail: Jehan.Procaccia@int-evry.fr 9 rue Charles Fourier 91011 Evry France | Fax : +33 (0) 160764321