You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Simon Kitching <si...@ecnetwork.co.nz> on 2004/02/10 02:11:03 UTC

unable to build svn server: aprutils/bdb issues

Hi,

I'm trying to compile SVN from the 1.0.0rc1 source tarball.
The OS is Mandrake 9.2 on x86.

Just running ./configure for subversion results in a "client only" svn
build. However I am currently unable to build the "server" part. Note: I
don't need the apache modules at the moment; local filesystem and/or
svnserve will do fine.

I have downloaded, compiled and installed BerkeleyDB4.2 into
/usr/local/BerkeleyDB4.2.

Attempting to compile subversion with:
  ./configure --with-berkeley-db=/usr/local/BerkeleyDB4.2
fails with:
  configure: error: Berkeley DB not found.
  configure failed for apr-util


I therefore downloaded apache httpd-2.0.48, and tried to compile the apr
and apr-util modules separately. NB: I deleted the apr and apr-util dirs
in the subversion tree to avoid confusion, then compile the apr and
apr-util dirs under the unpacked httpd tree.

The apr module compiled and installed into /usr/local/apr.

The apr-util module can be compiled and installed (into /usr/local/apr
also), *provided* I don't pass any parameters to configure. However
during configuration it outputs text indicating it can't find any
BerkeleyDB libraries. Attempting to configure *subversion* with these
libs using:
   --with-apr=/usr/local/apr 
   --with-apr-util=/usr/local/apr
   --with-berkeley-db=/usr/local/BerkeleyDB4.2
displays the message:
  configure: error: APR-UTIL was installed independently, it won't be
  possible to use the specified Berkeley DB: /usr/local/BerkeleyDB.4.2

This kind of makes sense: subversion requires a version of apr-utils
which is compiled with bdb4. However I am unable to compile apr-utils
with bdb4.2...

Trying to compile apr-util with:
  ./configure --with-berkeley-db=/usr/local/BerkeleyDB4.2
displays issues finding Berkeleydb, reporting that it cannot find any of
versions 4.1, 4.0, 3, 2, 1.0, 1 then outputting:
  configure: error: Berkeley DB not found.


Does anyone have any ideas what I am doing wrong? It sure looks to me
like apr-util doesn't yet support berkeley db newer than 4.1, but your
install docs recommend 4.2.51, so it must be possible...

Thanks,

Simon
 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: unable to build svn server: aprutils/bdb issues

Posted by Simon Kitching <si...@ecnetwork.co.nz>.
On Thu, 2004-02-12 at 05:33, Ben Collins-Sussman wrote:
> On Wed, 2004-02-11 at 11:47, Simon Kitching wrote:
> 
> > > * tell apr-util (either directly, or through apache's configure) to use
> > > --with-berkeley-db=/usr/local/BerkeleyDB.4.2.
> > 
> > 
> > I tried downloading the latest apr-util snapshot. Of course it comes
> > without a configure file, unlike the apr-util subdir in httpd-2.0.48
> > :-(.
> 
> Are you building httpd-2.0.48?  That's what I do.  You don't need the
> latest snapshot of apr-util.  The one bundled in httpd-2.0.48 works just
> fine.  Just configure apache
> --with-berkeley-db=/usr/local/BerkeleyDB.4.2 and it's apr-util will link
> to it just fine, assuming that /usr/local/BerkeleyDB.4.2 is in your
> /etc/ld.so.conf and/or LD_LIBRARY_PATH.

Hmm .. that's what I *thought* I tried before. 
However I gave it another go, and now it all works. Spooky.

Anyway, I can confirm that this process *does* build svn server stuff
with BerkeleyDB.4.2 on Mandrake9.2 (and probably all other linux)..
 * download berkeleydb 4.2 source, compile, install
 * update /etc/ld.so.conf to include "/usr/local/BerkeleyDB.4.2/lib"
   and run ldconfig
 * download httpd-2.0.48 source
 * compile & install httpd-2.0.48/srclib/apr using
    ./configure
 * compile & install httpd-2.0.48/srclib/apr-util using
    ./configure --with-apr=/usr/local/apr \
      --with-berkeley-db=/usr/local/BerkeleyDB.4.2
    ignore the messages about finding "berkeleydb 4.1"; it does
    actually build against the specified 4.2 version.
 * download subversion 1.0.0rc1, delete apr and apr-util subdirs
 * compile & install subversion with
     ./configure --with-apr=/usr/local/apr \
       -- with-apr-util=/usr/local/apr

Thanks for the help - now looking forward to trying to compile all this
on AIX :-)




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: unable to build svn server: aprutils/bdb issues

Posted by Ben Collins-Sussman <su...@collab.net>.
On Wed, 2004-02-11 at 11:47, Simon Kitching wrote:

> > * tell apr-util (either directly, or through apache's configure) to use
> > --with-berkeley-db=/usr/local/BerkeleyDB.4.2.
> 
> 
> I tried downloading the latest apr-util snapshot. Of course it comes
> without a configure file, unlike the apr-util subdir in httpd-2.0.48
> :-(.

Are you building httpd-2.0.48?  That's what I do.  You don't need the
latest snapshot of apr-util.  The one bundled in httpd-2.0.48 works just
fine.  Just configure apache
--with-berkeley-db=/usr/local/BerkeleyDB.4.2 and it's apr-util will link
to it just fine, assuming that /usr/local/BerkeleyDB.4.2 is in your
/etc/ld.so.conf and/or LD_LIBRARY_PATH.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: unable to build svn server: aprutils/bdb issues

Posted by John Szakmeister <jo...@szakmeister.net>.
On Tuesday 10 February 2004 23:47, Simon Kitching wrote:
> [snip]
> I tried downloading the latest apr-util snapshot. Of course it comes
> without a configure file, unlike the apr-util subdir in httpd-2.0.48
>
> :-(.

Did you run buildconf?  It might help to look at the documentation for 
building Apache 2. :-)

> I tried running autoconf but when the generated configure script is run,
> it reports a syntax error. I've downloaded and compiled the latest
> autoconf, and get the same result. &$&^%$@#!
>
> Well, maybe I'll try again when a newer apache release is out with the
> latest aprutil inside (including prebuilt configure file).
>
> In the meantime I've downloaded BerkeleyDB 4.1, and built against that.
> And it Just Works. yay. I can live without auto-log-cleaning for a
> while.

Unless you're running on Mac OS X, I'd suggest staying away from 4.1.  I've 
been seeing a number of random corruptions associated with 4.1.  I'd highly 
recommend either using 4.0, or trying again with 4.2.

-John


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: unable to build svn server: aprutils/bdb issues

Posted by Simon Kitching <si...@ecnetwork.co.nz>.
Hi Ben,

Thanks for the info. 

On Wed, 2004-02-11 at 06:30, Ben Collins-Sussman wrote:
> On Tue, 2004-02-10 at 09:11, Simon Kitching wrote:
> 
> > Does anyone have any ideas what I am doing wrong? It sure looks to me
> > like apr-util doesn't yet support berkeley db newer than 4.1, but your
> > install docs recommend 4.2.51, so it must be possible...
> 
> Yes, it's possible, but the latest released apr-util can't detect 4.2
> yet.  Only the CVS HEAD of apr-util has that code at the moment.
> The formula is:
> 
> * install DB4.2 somewhere on your system, like in
> /usr/local/BerkeleyDB.4.2
> 
> * put /usr/local/BerkeleyDB.4.2/lib into /etc/ld.so.conf and run
> 'ldconfig'
done.

> 
> * tell apr-util (either directly, or through apache's configure) to use
> --with-berkeley-db=/usr/local/BerkeleyDB.4.2.


I tried downloading the latest apr-util snapshot. Of course it comes
without a configure file, unlike the apr-util subdir in httpd-2.0.48
:-(.

I tried running autoconf but when the generated configure script is run,
it reports a syntax error. I've downloaded and compiled the latest
autoconf, and get the same result. &$&^%$@#!

Well, maybe I'll try again when a newer apache release is out with the
latest aprutil inside (including prebuilt configure file). 

In the meantime I've downloaded BerkeleyDB 4.1, and built against that.
And it Just Works. yay. I can live without auto-log-cleaning for a
while.

Oddly enough, ldd against the libaprutil-0.so file doesn't report any
BerkeleyDB libs dependencies, but subversion compiles the server stuff
ok.

Regards,

Simon




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: unable to build svn server: aprutils/bdb issues

Posted by Ben Collins-Sussman <su...@collab.net>.
On Tue, 2004-02-10 at 09:11, Simon Kitching wrote:

> Does anyone have any ideas what I am doing wrong? It sure looks to me
> like apr-util doesn't yet support berkeley db newer than 4.1, but your
> install docs recommend 4.2.51, so it must be possible...

Yes, it's possible, but the latest released apr-util can't detect 4.2
yet.  Only the CVS HEAD of apr-util has that code at the moment.

The formula is:

* install DB4.2 somewhere on your system, like in
/usr/local/BerkeleyDB.4.2

* put /usr/local/BerkeleyDB.4.2/lib into /etc/ld.so.conf and run
'ldconfig'

* tell apr-util (either directly, or through apache's configure) to use
--with-berkeley-db=/usr/local/BerkeleyDB.4.2.

* verify that apr-util really is linked to db4.2 with 'ldd'.  :-)

* configure your subversion tree with *no* mention of berkeley db.  It
will ask your installed apu-config for info about BDB, so that it links
to the same thing.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org