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

Re: SVN, Apache2, and Berkeley4.2 (beyond the FAQ)

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-03-09 17:08:30 CET

Robert Guthrie wrote:

> Have you tried just --with-dbm=db42 and not including the
> "--with-berkeley-db" argument at all?
>
> I'm having a similar issue and I have yet to resolve it, but my big
> problem is that I HAVE to use the --wirth-berkeley-db because the
> standard /usr/local location for it is off limits to me.
>
> I have an unfounded suspicion that the config file doesn't handle the
> --with-berkeley-db parameter properly, but the defaults work without it.
> If you succeed without the parameter at all, that will lend some
> credence to my theory, and I'll have more incentive to delve into the
> world of configure scripting.

As I understand it:

--with-berkeley-db=/path/to/BerkeleyDB

simply tells the configure file where to start looking for files (both include
and lib) in order to use BDB;

--with-dbm=db42

tells configure to _only_ use the specific library file libdb-4.2 when linking
(and I have never, in practice, had to use this flag).

There are two pieces to the configure run:

1) Can we find the proper include headers?
2) Can we compile a short test program (i.e. can we link to the libraries)?

The most important part of the FAQ is the instructions to add the
/path/to/Berkeleydb/lib directory to /etc/ld.so.conf and run ldconfig. This is
the piece that configures the system so that the linker can correctly find the
shared library, both for testing and for later use in Apache and Subversion.

Once you correctly set up the libraries in ld.so.conf, you should be able to
build Apache using

        ./configure --with-berkeley-db=/path/to/BerkeleyDB

no matter how many other versions of BDB you have already installed (I believe
my home machine has BDB1.x, BDB2.x, BDB4.0, BDB4.1, and BDB4.2 all on the system).

HTH

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 12 02:25:57 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.