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

Re: Compiling Trouble (BDB)

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Sun, 14 Sep 2008 15:59:46 -0500

On Sep 14, 2008, at 12:07 PM, Gre7g Luterman wrote:

> On my server, I'm trying to compile the latest subversion from
> source, but I'm getting hung up with Berkeley DB.
>
> I configured, made, and installed BDB (from source) without a
> problem. Then I unzipped APR and APR-util into apr and apr-util
> directories under my subversion source, but when I do a ./
> configure, I get this:
> configure: WARNING: we have configured without BDB filesystem support
>
> You don't seem to have Berkeley DB version 4.0.14 or newer
> installed and linked to APR-UTIL. We have created Makefiles which
> will build without the Berkeley DB back-end; your repositories will
> use FSFS as the default back-end. You can find the latest version of
> Berkeley DB here:
> http://www.oracle.com/technology/software/products/berkeley-db/
> index.html
> So, if Subversion compiles apr-util automatically, it is unable to
> guess where BDB was installed.
>
> Fine. If I "./configure --with-berkeley-db=/usr/local/BerkeleyDB.
> 4.7/" then I get:
> checking for Berkeley DB... not found
> configure: error: Berkeley DB not found.
> configure failed for apr-util
> Grr. Does anyone have a guess as to what has gone wrong here? Or
> perhaps, is there a directory under Subversion that I can put BDB
> (like how I do with apr and apr-util) to have it compile it in a
> way that it might prefer?

BerkeleyDB 4.7 may be too new. Or you may just need to specify it
differently; try:

--with-berkeley-db=/usr/local/BerkeleyDB.4.7/include:/usr/local/
BerkeleyDB.4.7/lib

The INSTALL document [1] says version 4.4 is recommended, but implies
that 4.5 will be supported once APR supports BDB 4.5, which I believe
it has for some time, so I think the INSTALL document is out of date.

MacPorts compiles Subversion using BDB 4.6 without problems.

Do you really need BDB support for some reason? Most people don't. I
recommend using

--without-berkeley-db

when compiling both apr-util and subversion to save yourself the
trouble.

[1] http://svn.collab.net/repos/svn/trunk/INSTALL

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-14 23:00:44 CEST

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.