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

Re: suversion installation problem

From: David Mahakian <tmoli42_at_gmx.net>
Date: 2006-06-15 16:39:10 CEST

Indraveni wrote:
> Hi,
>
> I am tring to install subversion in my system. I installed BerkeleyDB
> in my sytem. and when i am running the configure script.. like
>
> ./configure --with-apxs=/usr/local/apache/bin/apxs
> --with-berkeley-db=/usr/local/BerkeleyDB.4.4/ --with-ssl=/usr/local/openssl-0.9.7g/
> --with-neon=/usr/local/neon/
>
> It is showng an error message like BerkeleyDB not found. what may be
> the problem.. The
> last lines of output for the above command is pasted below.
>
> Some on eplease help me in installling subversion in my system.
>
> checking for Berkeley DB 2 in /usr/local/BerkeleyDB.4.4/...
> checking db2/db.h usability... no
> checking db2/db.h presence... no
> checking for db2/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db_open in -ldb2... no
> checking db2/db.h usability... no
> checking db2/db.h presence... no
> checking for db2/db.h...
> no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for db_open in -ldb... no
> checking for Berkeley DB 1.0.0 in /usr/local/BerkeleyDB.4.4/...
> checking db1/db.h usability... no
> checking db1/db.h presence... no
> checking for db1/db.h... no
> checking db.h usability... yes
> checking db.h presence... yes
> checking for db.h... yes
> checking for dbopen in -ldb1... no
> checking for Berkeley DB 1 in /usr/local/BerkeleyDB.4.4/...
> checking db_185.h usability... no
> checking db_185.h presence... no
> checking for db_185.h... no
> checking for Berkeley DB... not found
> configure: error: Berkeley DB not found.
> configure failed for apr-util
>
> HELP NEEDED PLEASE.....
>
> Indraveni

As far as I know, Subversion 1.3.x releases do not support Berkeley DB
4.4, so if what I have below resolves the problem above you will
probably run into another one.

 From http://svn.haxx.se/users/archive-2006-06/0491.shtml by Ryan Schmidt:

"Also, if you don't specifically need BerkeleyDB support, you can
compile Subversion without it. Subversion generally works great with
just the FSFS backend, which many find simpler to set up and
administer. You would only need BDB support if you wanted to access
an existing BDB repository, or if you prefer BDB over FSFS for some
reason."

If you still want to try to resolve your problem, see below

 From http://svn.haxx.se/users/archive-2006-06/0625.shtml by myself

I had a similar problem on my system (Ubuntu 5.10) and just figured it
out yesterday. The problem with mine was that I compiled and installed
4.3.29, but Ubuntu ships with BDB 4.3.28. The header file check in
configure for apr-util passes, but the library test fails. Ie (excerpted
lines only):

configure:18564: checking db.h presence
configure:18600: result: yes
configure:18635: checking for db.h
configure:18642: result: yes
configure:18658: checking for -ldb-4.3
configure:18754: result: no

Check your config.log in apr util for similar messages.

By taking a closer look I realized that what happened is that the Ubuntu
default bdb libraries in /usr/lib were being found first, so the library
version found did not match the header. So then I instead used that
version by --with-berkeley-db=/usr. That fixed it.

If RedHat also ships with a version of BDB, you may have the same issue
and want to try similar. Make sure you install the berkeley db
development rpm (if there is one, there was a separate package in Ubuntu
for it), then try something similar to what I have done.

When I searched online with similar problems, I think they all had the
same problem as me. None of them had the problem resolved; the only
advice they were given was to not compile with it.

- David Mahakian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 15 16:41:13 2006

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.