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

svnadmin: bad database version

From: Geoffrey Gallaway <geoffeg_at_geoffeg.org>
Date: 2004-04-13 02:34:27 CEST

Hello,

I've been trying to compile a subversion server (using apache 2) for a few
days now with no success. I'm on an older slackware box that didn't have
berkeleydb4 installed by default. I've tried installing berkeleydb4 in
/usr/local (--prefix=/usr/local) and finally in /usr/local/BerkeleyDB.4.2.
I append "/usr/local/BerkeleyDb.4.2/lib" to /etd/ld.so.conf and run
ldconfig. I then download the httpd-2.0.48 and subversion-1.0.1 tarballs. I
go into httpd-2.0.48, apply the configure patch
(http://subversion.tigris.org/project_faq.html#linux-bdb42-build), and then
run:

./configure --enable-dav --enable-so --prefix=/home/subversion/apache-2.0 \
            --enable-ssl --enable-deflate \
            --with-berkeley-db=/usr/local/BerkeleyDB.4.2/ --with-dbm=db42

I run make and make install and then go into the subversion build directory
and run:

./configure --with-apxs=/home/subversion/apache-2.0/bin/apxs \
            --prefix=/home/subversion/ --with-ssl \
            --with-berkeley-db=/usr/local/BerkeleyDB.4.2/

I then run make, make install and append "/home/subversion/lib" into
/etc/ld.so.conf and run ldconfig. Before I try to get httpd configured I try
to create a svn repository with svnadmin with:

/home/subversion/bin/svnadmin create repos

which results in:

svn: Bad database version: got 3.1.17, should be at least 4.0.14

Ldd on the appropriate files:

ldd /home/subversion/apache-2.0/bin/httpd | grep libdb
libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so (0x4012f000)
ldd bin/svn | grep libdb
libdb-4.2.so => /usr/local/BerkeleyDB.4.2/lib/libdb-4.2.so (0x401d3000)

Just FYI, if I add "--with-dbm=db42" as the FAQ says subversion's
./configure dies with "configure: error: Berkeley DB not found." and I leave
off --with-dbm and --with-berkeley-db I get a message about a client-only
build.

I'm lost, I don't know where to go from here.. Help!

Thanks,
Geoffeg

PS: Here is my output for "ldconfig -v | grep libdb":
        libdb.so.3 -> libdb2.so.3
        libdb.so.2 -> libdb1.so.2.1.3
        libdb-3.1.so -> libdb-3.1.so
        libdb_cxx-4.2.so -> libdb_cxx-4.2.so
        libdb-4.2.so -> libdb-4.2.so

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 13 02:35:12 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.