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

Re: Problems After Upgrade



Quanah Gibson-Mount <quanah@stanford.edu> wrote:
> 
> --On Saturday, October 08, 2005 8:11 PM -0700 David Wheeler 
> <justatheory@gmail.com> wrote:
> 
> > On 9/29/05, Quanah Gibson-Mount <quanah@stanford.edu> wrote:
> >
> >> >   checking Berkeley DB version for BDB/HDB backends... no
> >> >   configure: error: BDB/HDB: BerkeleyDB version incompatible
> >> >
> >> > Grrr...
> >>
> >> I suggest reading the FAQ about this error on the OpenLDAP website. ;)
> >
> > I don't see it there:
> >
> >
> > http://www.openldap.org/faq/index.cgi?cmd=search&file=8&_submit=Search+fo
> > r&_search=incompatible&_minMatches=
> 
> <http://www.openldap.org/faq/data/cache/43.html>

One might find the "-R" flag useful, as opposed to using
LD_LIBRARY_PATH.  On my Sun Sparc Solaris 8 system, I do:

$ ksh
$ unset LD_LIBRARY_PATH
$ CPPFLAGS="-I/usr/local/ssl/include -I/usr/local/BerkeleyDB.4.2/include" \
  LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib \
          -L/usr/local/BerkeleyDB.4.2/lib -R/usr/local/BerkeleyDB.4.2/lib" \
  ./configure --enable-crypt
$ make depend
$ make
$ make test
$ exit
$ su -
$ cd <to the build directory>
$ make install
$ exit
$

Works like a champ and I don't have to worry about the environment
in which slapd runs having to have LD_LIBRARY_PATH set.

Jim
-- 
Note: My mail server employs *very* aggressive anti-spam
filtering.  If you reply to this email and your email is
rejected, please accept my apologies and let me know via my
web form at <http://jimsun.linxnet.com/scform.php>.