[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: Gavin Kistner <gavin_at_refinery.com>
Date: 2004-03-09 21:52:21 CET

Yay, I finally got SVN built as well as httpd. (If you're reading this
page separate from the thread, see below for instructions on what it
took for me personally to get httpd2 built.)

I'm not sure if this was all necessary, but the following is what I did
in order to get SVN built against a new install of bdb4.2:

cd /lib/
mv libdb* ~/olddblibs/ #probably unnecessary; I wanted to clear out
db1-db3
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.a
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.la
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb-4.so
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb.a
ln -s /usr/local/BerkeleyDB.4.2/lib/libdb.so
ldconfig

cd /usr/local/src/
rm -r /subversion-1.0.0/
tar xzf _archive/subversion-1.0.0.tar.gz
cd subversion-1.0.0/apr-util/
curl -O http://subversion.tigris.org/db42-support-patch.txt
patch configure db42-support-patch.txt
cd ..

./configure --enable-maintainer-mode
--with-berkeley-db=/usr/local/BerkeleyDB.4.2 --with-dbm=db42

make && make install

ldd /usr/local/bin/svn | fgrep libdb
# libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
(0x40108000)

I still haven't configured things to ensure it's working, but at least
I have now gotten both to *compile* at least :)

On Mar 9, 2004, at 11:52 AM, Gavin Kistner wrote:
> I was having trouble building apache2 (httpd2) for use with subversion
> (SVN). Specifically, my linux/slackware 9.1 install didn't have
> Berkeley DB v4.2 installed. Compiling apache was using BDB3, which was
> not acceptable for subversion. After downloading and
> building/installing bdb4.2, all manner of methods that were supposed
> to work to specifically specify the path failed to work (including the
> FAQ entry
> http://subversion.tigris.org/project_faq.html#linux-bdb42-build and
> its associated patch). Not previously mentioned, this also included
> several ways of explicitly specifying LD_LIBRARY_PATH.
>
> The following sequence worked for me:
>
> cd /usr/local/src/
> rm -r httpd-2.0.48/
> tar xzf _archive/httpd-2.0.48.tar.gz
> cd ../httpd-2.0.48/
>
> curl -O http://subversion.tigris.org/db42-support-patch.txt
> patch -p0 <db42-support-patch.txt
>
> echo '/usr/local/BerkeleyDB.4.2/lib/' >> /etc/ld.so.conf
> ldconfig
>
> ./configure --enable-dav=shared --enable-dav_fs=shared
> --enable-expires=shared --enable-deflate=shared
> --enable-rewrite=shared --disable-userdir --enable-maintainer-mode
> --with-dbm=db42 --with-berkeley-db
>
> make; make install
>
> ldd /usr/local/apache2/bin/httpd | fgrep libdb
> # libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so
> (0x40045000)

--
(-, /\ \/ / /\/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 9 21:53:05 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.