[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion 1.0.1 and BerkeleyDB.4.2

From: Richard Heycock <rgh_at_roughage.com.au>
Date: 2004-03-16 04:21:49 CET

Try setting LD_LIBRARY_PATH to the base dir of the db? eg:

LD_LIBRARY_PATH=/usr/local/BerkeleyDB.4.x
export LD_LIBRARY_PATH

rgh

On Tue, 2004-03-16 at 14:12, petesea@bigfoot.com wrote:
> This is the first time I've tried to compile subversion and I can't seem
> to get configure to find Berkeley DB. It either says it can't find
> Berkeley DB and will only compile the client, or it says "Berkeley db4 not
> found" (depending on which configure options I use).
>
> My system is Redhat 7.1 and I'm trying to compile without Apache
> support... I only want a client and svnserve.
>
> I've tried the following combinations, none of which seem to work:
>
> subversion-1.0.1/db-4.2.52
> subversion-1.0.1/db-4.0.14
> subversion-1.0.0/db-4.0.14
>
> I've tried running the subversion configure AFTER applying the db-4.2
> patch listed in the subversion FAQ and running the subversion configure
> WITHOUT applying the patch.
>
> I've tried running configure with both "--with-berkeley-db=PATH" and
> "--with-dbm=db42", with only "--with-berkeley-db=PATH' and without either.
>
> I've tried running Berkeley DB configure with no options (ie. prefix is
> /usr/local/BerkeleyDB.4.x) and with "--prefix=/usr/local".
>
> What am I missing? (details for one example follow)
>
> -------------------------------------------------------------------------
> First I downloaded db-4.2.52.tar.gz and added the 2 patch files from the
> Berkeley DB website:
>
> http://www.sleepycat.com/download/db/index.shtml
>
> Berkeley DB compiled and installed into /usr/local/BerkeleyDB.4.2 without
> problem:
>
> $ tar xvzf db-4.2.52.tar.gz
> ...
> $ cd db-4.2.52
> $ patch -p0 < ../db-4.2.52.1.patch
> patching file mp/mp_fget.c
> patching file mp/mp_fput.c
> $ patch -p0 < ../db-4.2.52.2.patch
> patching file lock/lock.c
> $ cd build_unix
> $ ../dist/configure
> ...
> $ make
> ...
> $ make install
> ...
> $ ls -o /usr/local/BerkeleyDB.4.2/lib /usr/local/BerkeleyDB.4.2/include
> /usr/local/BerkeleyDB.4.2/include:
> total 120
> -r--r--r-- 1 root 33181 Mar 15 17:21 db_cxx.h
> -r--r--r-- 1 root 80355 Mar 15 17:21 db.h
>
> /usr/local/BerkeleyDB.4.2/lib:
> total 2700
> -rw-r--r-- 1 root 973308 Mar 15 17:25 libdb-4.2.a
> -rw-r--r-- 1 root 802 Mar 15 17:25 libdb-4.2.la
> -rwxr-xr-x 1 root 795040 Mar 15 17:25 libdb-4.2.so
> lrwxrwxrwx 1 root 12 Mar 15 17:25 libdb-4.so -> libdb-4.2.so
> -rw-r--r-- 1 root 973308 Mar 15 17:25 libdb.a
> lrwxrwxrwx 1 root 12 Mar 15 17:25 libdb.so -> libdb-4.2.so
>
> Then I downloaded subversion-1.0.1.tar.gz and applied the apr-util patch
> listed on the FAQ page:
>
> $ tar xvzf subversion-1.0.1.tar.gz
> ...
> $ cd subversion-1.0.1/apr-util
> $ patch < ../../subversion-db42-support.patch
> patching file configure
> Hunk #1 succeeded at 14438 (offset 1052 lines).
> Hunk #2 succeeded at 28261 (offset 1075 lines).
> $ cd ..
> $ configure --with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-dbm=db42
> Configuring Subversion 1.0.1
> ...
> checking checking for Berkeley DB 4.2 in /usr/local/BerkeleyDB.4.2...
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db-4.2... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db4... no
> checking db4/db.h usability... no
> checking db4/db.h presence... no
> checking for db4/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db... no
> configure: error: Berkeley db4 not found
> configure failed for apr-util
> -------------------------------------------------------------------------
>
> > To: "Jeff Lanzarotta" <lanzarottaj@rogersltd.com>
> > Cc: <users@subversion.tigris.org>
> > From: "C. Michael Pilato" <cmpilato@collab.net>
> > Subject: Re: Subversion 1.0.1 and BerkeleyDB.4.2
> >
> > "Jeff Lanzarotta" <lanzarottaj@rogersltd.com> writes:
> >
> > > Do I still have to patch the source code in order to use
> > > BerkeleyDB.4.2? When I compiled version 1.0, I needed to patch the
> > > code with db42-support-patch.txt do I need to do the same with 1.0.1?
> >
> > Yeah. Until a new apr-util release is made and Subversion moves to it,
> > we'll need to keep using this patch. The good news is that the apr-util
> > release is coming soon, so I dunno, maybe Subversion 1.0.2 will use it?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

-- 
"It is possible to make things of great complexity out of things
 that are very simple. There is no conservation of simplicity"
 -- Stephen Wolfram
Richard Heycock <rgh@roughage.com.au>
tel : 0410 646 369
key fingerprint : 909D CBFA C669 AC2F A937 AFA4 661B 9D21 EAAB 4291
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 16 04:22:15 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.