You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Sebastian Bergmann <li...@sebastian-bergmann.de> on 2002/06/23 10:16:37 UTC

'svn co http://' fails

  I have setup Apache 2.0.40-dev with mod_dav and mod_dav_svn and
  created a test repository

    sb@wopr-mobile:~> svnadmin create /usr/local/svn/test

  and imported some files

    sb@wopr-mobile:~> svn import file:///usr/local/svn/test /home/sb/test

  Checking out the repository using

    sb@wopr-mobile:~> svn co file:///usr/local/svn/test

  works, but

    sb@wopr-mobile:~> svn co http://localhost/svn/test

  results in the following error

    svn_error: #21054 : <General filesystem error>
      OPTIONS request failed on /svn/test

    svn_error: #21054 : <General filesystem error>
      bad database version: 2.4.14

  What could be going wrong here?

  mod_dav and mod_dav_svn are installed and activated, the following
  lines are at the end of my httpd.conf

    <Location /svn/test>
      DAV svn
      SVNPATH /usr/local/svn/test
    </Location>

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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

Re: 'svn co http://' fails

Posted by Sebastian Bergmann <li...@sebastian-bergmann.de>.
Greg Stein wrote:
> The reason why I bring this up is not simple "RTFM", but that you have
> asked about a half-dozen questions on this list over the past couple 
> days. You have consumed a number of people's time to respond to your 
> problems, when *you* could have handled this yourself.

  Greg,

  I did spend quite some time the last couple of days with subversion.

  True, I missed the note of adding the BDB path to /etc/ld.so.conf, but
  I also misinterpreted this is as a mistake of subversion's build
  system.

  See my posting

    Message-ID: <3D...@sebastian-bergmann.de>

  for an issue with the subversion (or with apu-config, dunno) that I 
  seem to have discovered.

  Now that I'm (finally :-) set up, I hope I can contribute to the
  project from time to time with "real" problems I might encounter while
  using subversion.

  Again, sorry for bothering so far,
Sebastian

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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

Re: 'svn co http://' fails

Posted by Greg Stein <gs...@lyra.org>.
On Mon, Jun 24, 2002 at 07:24:57AM +0200, Sebastian Bergmann wrote:
> Philip Martin wrote:
> > You need to build Apache against db-4.0.14.  See the Subversion
> > INSTALL file for details.
> 
>   Been there, done that, still no t-shirt:
> 
> wopr-mobile:/home/sb # /usr/local/apache2/bin/apachectl start
> /usr/local/apache2/bin/httpd: error while loading shared libraries:
> libdb-4.0.so: cannot open shared object file: No such file or directory

A couple followup emails to your query pointed out 'ldconfig' and that it
solved your problem here.

I'm going to try to say this nicely. That specific point was in the INSTALL
document, if you had read it (at all, or in more detail). Specifically:

      Additionally, with shared library builds, the destination
      library directory must be identified in your operating system's
      library search path. That is in either /etc/ld.so.conf or
      $LD_LIBRARY_PATH for linux systems and in /etc/rc.conf for
      FreeBSD, followed by a run of the 'ldconfig' program. Check your
      system documentation for details. By identifying the destination
	    

The reason why I bring this up is not simple "RTFM", but that you have asked
about a half-dozen questions on this list over the past couple days. You
have consumed a number of people's time to respond to your problems, when
*you* could have handled this yourself.

Personally, I find this unfair on your part. Many people on this list work
to make Subversion better. They put in a lot of time already. But you're not
putting in your *own* time, and instead asking others to donate even more of
their scarce time to solve problems which you could have done yourself.

*Please* ... in the future, please take a moment to review existing
documentation, bug reports, or even the mail list archives. Hundreds of
people have installed Subversion and got it work fine. Your answer will most
likely be there, and I'd encourage you to spend a bit of your own time to
find it first.

Thanks,
-g

-- 
Greg Stein, http://www.lyra.org/

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

Re: 'svn co http://' fails

Posted by Sebastian Bergmann <li...@sebastian-bergmann.de>.
Philip Martin wrote:
> You need to build Apache against db-4.0.14.  See the Subversion
> INSTALL file for details.

  Been there, done that, still no t-shirt:

wopr-mobile:/home/sb # /usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/httpd: error while loading shared libraries:
libdb-4.0.so: cannot open shared object file: No such file or directory
wopr-mobile:/home/sb # cat /usr/src/httpd-2.0/config.nice
#! /bin/sh
#
# Created by configure

"./configure" \
"--enable-so" \
"--enable-dav" \
"--enable-rewrite" \
"--with-dbm=db4" \
"--with-berkeley-db=/usr/local/BerkeleyDB.4.0" \
"$@"
wopr-mobile:/home/sb # locate libdb-4.0
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.a
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.la
/usr/local/BerkeleyDB.4.0/lib/libdb-4.0.so
/usr/src/db-4.0.14/build_unix/.libs/libdb-4.0.a
/usr/src/db-4.0.14/build_unix/.libs/libdb-4.0.la
/usr/src/db-4.0.14/build_unix/.libs/libdb-4.0.lai
/usr/src/db-4.0.14/build_unix/.libs/libdb-4.0.so
/usr/src/db-4.0.14/build_unix/libdb-4.0.la
/usr/src/subversion/db/build_unix/.libs/libdb-4.0.a
/usr/src/subversion/db/build_unix/.libs/libdb-4.0.la
/usr/src/subversion/db/build_unix/.libs/libdb-4.0.lai
/usr/src/subversion/db/build_unix/.libs/libdb-4.0.so
/usr/src/subversion/db/build_unix/libdb-4.0.la
/usr/src/subversion/db/dist/.libs/libdb-4.0.a
/usr/src/subversion/db/dist/.libs/libdb-4.0.la
/usr/src/subversion/db/dist/.libs/libdb-4.0.lai
/usr/src/subversion/db/dist/.libs/libdb-4.0.so
/usr/src/subversion/db/dist/libdb-4.0.la

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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

Re: 'svn co http://' fails

Posted by Philip Martin <ph...@codematters.co.uk>.
Sebastian Bergmann <li...@sebastian-bergmann.de> writes:

> Sebastian Bergmann wrote:
> > BDB 2.4.14 was installed as an RPM package. I removed that package 
> > now, but now subversion's configure doesn't find BDB 4.0.14, even 
> > after I build and installed it again (and invoked both ldconfig and 
> > updatedb):
> 
>   I copied the BDB source tree under /usr/src/subversion/db, and now
>   ./configure is happy again and the build succeeds.
> 
>   But I do get the same error message. :-/

You need to build Apache against db-4.0.14.  See the Subversion
INSTALL file for details.

-- 
Philip

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

Re: 'svn co http://' fails

Posted by Sebastian Bergmann <li...@sebastian-bergmann.de>.
Sebastian Bergmann wrote:
> BDB 2.4.14 was installed as an RPM package. I removed that package 
> now, but now subversion's configure doesn't find BDB 4.0.14, even 
> after I build and installed it again (and invoked both ldconfig and 
> updatedb):

  I copied the BDB source tree under /usr/src/subversion/db, and now
  ./configure is happy again and the build succeeds.

  But I do get the same error message. :-/

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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

Re: 'svn co http://' fails

Posted by Sebastian Bergmann <li...@sebastian-bergmann.de>.
Branko ?ibej wrote:
> The error message says it all. mod_dav_svn is dynamically linking with
> BDB 2.4.14, but it should be using 4.0.14. My best guess is that you
> have Berkeley DB 2.x installed, and the dynamic loader finds that 
> before the 4.0.14 you need to build Subversion with.

  BDB 2.4.14 was installed as an RPM package. I removed that package now,
  but now subversion's configure doesn't find BDB 4.0.14, even after I
  build and installed it again (and invoked both ldconfig and updatedb):

    sb@wopr-mobile:~> ll /usr/local/BerkeleyDB.4.0
    total 0
    drwxr-xr-x    2 sb       users         344 Jun 23 13:32 bin
    drwxr-xr-x   10 sb       users         312 Jun 23 13:32 docs
    drwxr-xr-x    2 sb       users         160 Jun 23 13:32 include
    drwxr-xr-x    2 sb       users         224 Jun 23 13:32 lib

    sb@wopr-mobile:/usr/src/subversion> cat config.nice
    #! /bin/sh
    #
    # Created by configure
    
    "./configure" \
    "--with-apr=/usr/local/apache2" \
    "--with-apr-util=/usr/local/apache2" \
    "$@"
    sb@wopr-mobile:/usr/src/subversion>

checking for built-in Berkeley DB... no
checking for Berkeley DB in the standard places... no
checking for Berkeley DB in /usr/local/include/db4 and /usr/local/lib...
no
checking for Berkeley DB in /usr/local... no
checking for Berkeley DB in /usr/local/BerkeleyDB.4.0... no
checking for Berkeley DB in /usr/include/db4 and /usr/lib... no

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

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

Re: 'svn co http://' fails

Posted by Branko Čibej <br...@xbc.nu>.
Sebastian Bergmann wrote:

>  I have setup Apache 2.0.40-dev with mod_dav and mod_dav_svn and
>  created a test repository
>
>    sb@wopr-mobile:~> svnadmin create /usr/local/svn/test
>
>  and imported some files
>
>    sb@wopr-mobile:~> svn import file:///usr/local/svn/test /home/sb/test
>
>  Checking out the repository using
>
>    sb@wopr-mobile:~> svn co file:///usr/local/svn/test
>
>  works, but
>
>    sb@wopr-mobile:~> svn co http://localhost/svn/test
>
>  results in the following error
>
>    svn_error: #21054 : <General filesystem error>
>      OPTIONS request failed on /svn/test
>
>    svn_error: #21054 : <General filesystem error>
>      bad database version: 2.4.14
>
>  What could be going wrong here?
>

The error message says it all. mod_dav_svn is dynamically linking with 
BDB 2.4.14, but it should be using 4.0.14. My best guess is that you 
have Berkeley DB 2.x installed, and the dynamic loader finds that before 
the 4.0.14 you need to build Subversion with.

>  mod_dav and mod_dav_svn are installed and activated, the following
>  lines are at the end of my httpd.conf
>
>    <Location /svn/test>
>      DAV svn
>      SVNPATH /usr/local/svn/test
>    </Location>
>
Yes, that worked -- the error you got came from mod_dav_svn.


-- 
Brane Čibej   <br...@xbc.nu>   http://www.xbc.nu/brane/


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