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

Re: Two BDB questions

From: Troy Curtis Jr <troycurtisjr_at_gmail.com>
Date: 2006-09-09 05:29:41 CEST

On 9/7/06, Ryan Schmidt <subversion-2006c@ryandesign.com> wrote:
>
> On Sep 8, 2006, at 05:52, Troy Curtis Jr wrote:
>
> > Ok I have two BDB questions:
> >
> > First, I have heard time and time again to not USE bdb based repos on
> > an NFS share. My question is whether it would be safe to use
> > hot-backup.py or svnadmin hotcopy to access the BDB repo over NFS and
> > create a local copy?
>
> I have no experience with BDB repositories myself, but it does not
> sound to me as if that would be safe.
>
>
> > Second, I have a Red Hat 8.0 system which seems to have
> > libdb{4.0,4.1,4.2}, and I want to install and run 4.4 (I guess the
> > latest is the greatest right?). So I download the db4.4 and the
> > configure/build goes perfectly but when I try to tell subversion to
> > use it (with --with-berkeley-db=/usr/local/Berkeley4.4) it still grabs
> > the 4.0 version! I made sure that this path was in my /etc/ld.so.conf
> > file, but no luck. Looking at the configure it seems to be looking
> > for a db4.4/db.h file, but my build does not produce a directory
> > named that at all.
> >
> > Ok trying it on my gentoo box (I had 4.3 installed so this test works
> > ok) I see that it says:
> > checking for Berkeley DB 4.4 in /usr/local/BerkeleyDB.4.4/lib...
> > .....
> > checking for -ldb-4.4... no
> >
> > Yet an 'ls /usr/local/BerkeleyDB.4.4/lib' gives:
> > libdb-4.4.a libdb-4.4.la libdb-4.4.so libdb-4.so libdb.a libdb.so
> >
> > Any ideas (/usr/local/BerkeleyDB.4.4/lib/ is in /etc/ld.so.conf, and I
> > performed and env-update)?
>
> According to the Subversion 1.4 release notes, that is the first
> version that supports BDB 4.4. Since Subversion 1.4 is not released
> yet, you're probably using Subversion 1.3.2, so I believe that means
> you should use at most BDB 4.3.
>
> http://subversion.tigris.org/svn_1.4_releasenotes.html
>
>
I was actually useing 1.4 RC5 (sorry that I did not specify which in
my original mail), but I was able to figure out how to use it and I
will describe it here for any that had similar issues.

When you install Berkeley DB 4.4 from source, it's default location is
/usr/local/BerkeleyDB.4.4/{lib,docs,include,lib}. Of course this is
not a standard location for your libraries, so before you try to build
Subversion 1.4 you need to do the following.

 (as root)
 echo "/usr/local/BerkeleyDB.4.4/lib" >> /etc/ld.so.conf
 /sbin/ldconfig /usr/local/BerkeleyDB.4.4

Then when you configure Subversion, make sure you give the option:
--with-berkeley-db=/usr/local/BerkeleyDB.4.4 and you should be
golden. Hope it helps!

So no other thoughts on my BerkeleyDB backup question?

-- 
"Beware of spyware. If you can, use the Firefox browser." - USA Today
Download now at http://getfirefox.com
Registered Linux User #354814 ( http://counter.li.org/)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 9 05:30:56 2006

This is an archived mail posted to the Subversion Users mailing list.