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

Re: problem with OpenLDAP 2.0.11 and Berkeley DB 3.2.9



Randy Kunkee wrote:
> 
> Michael Dunlap wrote:
> 
> > Hi folks,
> >
> > I'm trying to compile OpenLDAP 2.0.11 for use with a Berkeley DB
> > backend.  I have installed Berkeley 3.2.9 (in /usr/local) and ran the
> > OpenLDAP configure with the --with-ldbm-api=berkeley option.  When I
> > create my first entry using ldapadd however the database created is a
> > gdbm database.  I have tried everything I could find on the net (setting
> > compile options, etc) and nothing is working.  Does anyone have a
> > suggestion on how to really force OpenLDAP to use Berkeley?
> >
> > Thanks,
> > Michael
> > --
> > Michael Dunlap                   Systems Programmer / Administrator
> > michael.dunlap@yale.edu          Workstation Support, ITS
> > (203) 432-1256                   Yale University
> 
> Are you using the default configuration within db-3.2.9/build_unix?  This
> will put the db stuff in /usr/local/BerkeleyDB.3.2/*, and you'll need to
> set CPPFLAGS and LDFLAGS to allow the OpenLDAP configure to find it.
> 
> Randy


I installed BerkeleyDB in /usr/local, so the header info is in
/usr/local/include, the libraries are in /usr/local/lib, etc.  

The OpenLDAP configure script finds db.h..here is a snippet from the
configure log:

checking for db.h... yes
checking for Berkeley DB link (default) ... no
checking for Berkeley DB link (-ldb)... yes
checking for Berkeley DB thread support... yes

I'm not sure how important the second line is...wonder if it's a
show-stopper?

-Michael


-- 
Michael Dunlap                   Systems Programmer / Administrator
michael.dunlap@yale.edu          Workstation Support, ITS
(203) 432-1256                   Yale University