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

Re: Trying to build SVN 1.5 on Ubuntu

From: Stefan Sperling <stsp_at_elego.de>
Date: Sat, 7 Jun 2008 11:03:21 +0200

On Fri, Jun 06, 2008 at 11:41:08PM -0700, Hyrum K. Wright wrote:
> Robert Dailey wrote:
> > Hi,
> >
> > I'm trying to setup an svn+ssh server on my Ubuntu Server box, however I
> > can't seem to get started on the build process. I did 'apt-get install
> > subversion' and with that I did a checkout of the subversion trunk, since I
>
> If all you're interested in is 1.5, you checkout the 1.5.x branch. It's
> usually more stable[1] than trunk.
>
> > want to run my server as 1.5 and not 1.4. The checkout went fine, but I
> > can't get past ./configure, since it cannot find APR or APR-UTIL. I did:
> >
> > apt-get install libapr1
> > apt-get install libaprutil1
> >
> > However, I do not know what directories these libraries were installed to,
> > so I can't properly set --with-apr. I'm extremely new to Linux, so go easy
> > on me, I'm probably missing something very obvious. Help in setting up this
> > server (more specifically, getting SVN to compile) is greatly appreciated.
>
> It looks like you've hit bug 96980:
> https://bugs.launchpad.net/ubuntu/+source/apr-util/+bug/96980

No he didn't yet, but he's going to when he installs the -dev
packages :)

Robert, you always need the corresponding -dev packages whenever
you try to compile an application yourself that uses a library.

The non-dev packages only install things needed for already compiled
applications using the library. The -dev packages install the things
needed to compile an application that uses a library (hence the -dev
suffix, for "development").

So usually, on a Debian-like system, you'd need to do this before
running Subversion's configure script:

        apt-get install libapr1-dev
        apt-get install libaprutil1-dev

But as Hyrum pointed out, there seems to be a bug in the libapr1-dev
package in Ubuntu. So the workaround he suggested seems to be the
only possible way to compile Subversion on Ubuntu at the moment.

And by the way, you should deinstall the Subversion package provided
by Ubuntu before trying to compile Subversion yourself, otherwise you
will get library symbol mismatch errors because of a bug in the libtool
software we're using to manage our shared libraries. Alternatively, you
can keep the Ubuntu subversion package and pass --disable-shared to
Subversion's configure script. But this will prevent mod_dav_svn
from being built, so if you need Apache support in your custom
Subversion 1.5 installation you cannot use --disable-shared.

Hope this helps (and I also hope that the last paragraph wasn't too
confusing :)

Stefan

  • application/pgp-signature attachment: stored
Received on 2008-06-07 11:03:50 CEST

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.