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

Re: Compiling complete system

From: Buddy Burden <buddy_at_barefoot.net>
Date: 2004-01-20 17:04:28 CET


Sorry for the long delay in replying; my email server was down the entire
weekend (and I'm one of the people responsible for getting it back up).

> It's this last step that's going wrong. You don't need to tell
> subversion where berkeley-db is, just tell it where apache is.
> ...

Ah. I think I'm getting it now. Your advice and Jani's are showing me the
light. This is the key:

> 2. make sure apache and its apr-util build against it (--with-berkeley-
> db, and possibly including the library in /etc/ld.so.conf)

I poked around in the configure until I found out how Subversion was
checking the Berkeley DB version for APR-util. My apu-config --libs was
giving me -ldb2, and I figured _that_ wasn't good.

I didn't really want to fiddle with ld.so.conf, because I wanted to minimize
my impact on this box. Fiddling with dynamic library paths doesn't really
fit into that. However, after all this I now see that it's unavoidable.
Jani's suggestion works great for the actual building, but that's not going
to work for running Apache as a daemon. So I've revised my setup a bit. I
gave up on jamming the DB4 in with the Subversion; if I have to expose it to
the world via ld.so.conf anyway, no point in hiding it. So now we have:

         cd /usr/local
         sudo mkdir subversion
         cd subversion
         sudo mkdir apache svn-0.35.1
         sudo ln -s svn-035.1 svn

         cd ~/src/db-4.2.52/build_unix
         sudo make install
        cd /usr/local
        sudo ln -s BerkeleyDB.4.2 BerkeleyDB
        sudo vi /etc/ld.so.conf
        # add /usr/local/BerkeleyDB/lib
        sudo ldconfig

         cd ~/src/httpd-2.0.48
         ./configure --prefix=/usr/local/subversion/apache --enable-so --enable-dav --with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB
         sudo make install

         cd ~/src/subversion-0.35.1
         ./configure --prefix=/usr/local/subversion/svn-0.35.1 --enable-ssl --with-apr=/usr/local/subversion/apache --with-apr-util=/usr/local/subversion/apache
        sudo make install

And this seems to work. Thanx all! (And perhaps this will help someone

So Subversion isn't recompiling APR and APR-util (it doesn't seem to be
trying to any more)? This could fix my other Subversion building problem.
The Gentoo ebuild file claims that having APR installed should block
building Subversion (presumably so that Subversion can supply its own). So
you think it would be safe to remove that restriction and go from there?

Thanx everyone for the great advice.

                -- Buddy

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 20 17:50:41 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.