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

Berkeley DB compatibility problems

From: Pete Gonzalez <pgonzalez_at_bluel.com>
Date: 2004-01-15 03:14:50 CET

I had problems getting Subversion to compile on a Debian server and
a RedHat server, both of which were lacking the db-4.2 package.

For reference, here's how I solved it:

1. Compile and install db-4.2.52.tar.gz

2. For a non-root installation, add this line to ~/.bash_profile:

         export LD_PRELOAD=/home/me/local/BerkeleyDB.4.2/lib/libdb.so

    This tells the configure script where to find the db-4.2 libraries.
    For a root install, I instead added "/usr/local/BerkeleyDB.4.2/lib"
    to /etc/ld.so.conf and re-ran ldconfig.

3. I downloaded apr-util-APU_0_9_BRANCH_20031230052737.tar.gz and
    copied the "configure.in" and "build/dbm.m4" files from it,
    which was suggested here:


    (Without changes #2 and #3, the ./configure command would fail.)

4. I ran configure (these options are for the non-root install):

    ./configure --prefix=/home/me/local/ \
      --with-berkeley-db=/home/me/local/BerkeleyDB.4.2/lib/ \
      --with-dbm=db42 --with-ssl\
      --enable-maintainer-mode --disable-mod-activation

5. Ran "make" and "make install". For non-root install, I had
    to first edit the Makefile to remove "install-mods-shared",
    since otherwise it tries to copy files into an Apache folder.

I'm not sure why other people haven't encountered the problems
above, but maybe these notes will be useful to someone else.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 15 03:15:43 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.