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

RE: Installation Problem



I was stumped for ages, couple fo days:-), with something similar, I don't
think BerkleyDB3.1 is supported on that version of openLdap (there was some
reason I didn't use it ... check the faq) however I managed to get Open LDAP
2.06 installed with the following on Solaris 2.6 using db-2.7.7, it may help
... I had to dig around in the configure script to find the "auto" but it
seems to work so far for the FEW tests I've run with it.  You'll have to
change the BerkeleyDB path.

env  ac_cv_func_pthread_create=no ol_cv_kthread_flag=no
ol_cv_pthread_flag=no \
ol_cv_pthreads_flag=no      ol_cv_thread_flag=no
CPPFLAGS="-I/usr/local/BerkeleyDB/include"    \     
LDFLAGS="-L/usr/local/BerkeleyDB/lib" ./configure --enable-ldbm
--with-ldbm-api=auto


NOTE: I also got version 1.2.11 installed on Solaris 2.7 with db-2.7.7 with
somethiing like the following (note the --with-ldbm-api=db2 parameter):
env   ac_cv_func_pthread_create=no ol_cv_kthread_flag=no
ol_cv_pthread_flag=no ol_cv_pthreads_flag=no /
ol_cv_thread_flag=no CPPFLAGS="-I/usr/local/BerkeleyDB/include"
LDFLAGS="-L/usr/local/BerkeleyDB/lib" /
./configure  --with-ldbm-api=db2 --without-threads

Good luck.

p.s. check openldap.org's faq pages for Solaris thread information.


Message Central plc. Suite K307 Tower Bridge Business Complex 100 Clements
Road London SE16 4DG
Web: www.msgc.com Email: info@msgc.com Tel: +44 20 7394 9511 Fax: +44 20
7231 8201
If you receive this email by mistake, please destroy your copy, having
returned this copy to the sender. This email and any attachments to it may
have been tampered with. Message Central plc cannot warrant the accuracy,
completeness or freedom from viruses of this email or any attachments. You
are strongly advised to check this email for viruses before downloading or
opening any attachments. Opinions expressed in this email are those of the
author and not of Message Central plc.



-----Original Message-----
From: andrewa@sybase.com [mailto:andrewa@sybase.com]
Sent: None
To: openldap-software@OpenLDAP.org
Subject: Installation Problem


Hiya,

Just trying to do the install for the first time and configure is failing
to find my Berkeley DB installation.

I am running on Solaris 2.6 trying to install Open LDAP version 1.2.11 with
BDB 3.1

My build scripts is:

#!/bin/sh
env CFLAGS=-I/usr/local/BerkeleyDB.3.1/include \
        LDFLAGS=-L/usr/local/BerkeleyDB.3.1/lib \
        ac_cv_func_pthread_create=no \
        ol_cv_kthread_flag=no \
        ./configure

and the final portion of the configure output is:

checking if pthread_create() works... yes
checking if select yields when using pthreads... yes
checking for thread specific errno... yes
checking for DB2 library... checking for db_open in -ldb... no
no
checking for db.h... no
checking for Berkeley DB2... no
checking for Berkeley DB library... checking for dbopen... no
checking for dbopen in -ldb1... no
checking for dbopen in -ldb... no
no
checking for db_185.h... no
checking for Berkeley DB... no
checking for GDBM library... checking for gdbm_open... no
checking for gdbm_open in -lgdbm... no
no
checking for gdbm.h... no
checking for db... no
checking for MDBM library... checking for mdbm_set_chain... no
checking for mdbm_set_chain in -lmdbm... no
no
checking for mdbm.h... no
checking for db... no
configure: warning: could not find suitable LDBM backend
configure: error: select appropriate LDBM options or disable

Any pointers gratefully recieved.

Cheers,
Andy