[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: <petesea_at_bigfoot.com>
Date: 2004-03-16 04:12:10 CET

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
Received on Tue Mar 16 04:13:47 2004

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