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

Re: svn error, cannot find libsvn_client-1.so.0

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 6 May 2009 16:43:30 +0100

On Wed, May 06, 2009 at 08:28:16AM -0600, Julia Kamenetzky wrote:
> Hello,
> I've been using svn just fine on one computer, and I recently started
> using it on another computer as well. The whole archive loaded fine, but
> when I just tried to svn update I got:
> svn: error while loading shared libraries: libsvn_client-1.so.0: cannot
> open shared object file: No such file or directory
> How do I resolve this...? Thanks!

There is a problem with your installation.

Can you describe what operating system you are using, which version of
Subversion you are trying to use, and you did install Subversion?
If you compiled Subversion yourself, please make sure to include
information about the configure command line you were using.

Some background:

Subversion uses shared libraries, i.e. its program code is spread
across several different files. There is the main executable called
"svn", and there are many libsvn*.so files and a few other .so files
that together make up the whole program.

If a shared library cannot be located, the program cannot start,
because part of its code is not known.

On Linux and similar systems, you can find out which files a program
is composed of by running the ldd command on the executable.
For example, running:
        ldd `which svn`
should show you which shared libraries are being used by Subversion,
and which are missing.

For example, on Debian, Subversion as installed from the provided
Debian package lists a lot of shared libraries:

        $ ldd `which svn`
        linux-gate.so.1 => (0xb7f14000)
        libsvn_client-1.so.1 => /usr/lib/libsvn_client-1.so.1 (0xb7ecc000)
        libsvn_wc-1.so.1 => /usr/lib/libsvn_wc-1.so.1 (0xb7e90000)
        libsvn_ra-1.so.1 => /usr/lib/libsvn_ra-1.so.1 (0xb7e87000)
        libsvn_delta-1.so.1 => /usr/lib/libsvn_delta-1.so.1 (0xb7e7d000)
        libsvn_diff-1.so.1 => /usr/lib/libsvn_diff-1.so.1 (0xb7e73000)
        libsvn_subr-1.so.1 => /usr/lib/libsvn_subr-1.so.1 (0xb7e3a000)
        libapr-1.so.0 => /usr/lib/libapr-1.so.0 (0xb7e0f000)
        libpthread.so.0 => /lib/i686/cmov/libpthread.so.0 (0xb7df6000)
        libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7c9a000)
        libaprutil-1.so.0 => /usr/lib/libaprutil-1.so.0 (0xb7c7c000)
        libsvn_ra_local-1.so.1 => /usr/lib/libsvn_ra_local-1.so.1 (0xb7c75000)
        libsvn_repos-1.so.1 => /usr/lib/libsvn_repos-1.so.1 (0xb7c50000)
        libsvn_fs-1.so.1 => /usr/lib/libsvn_fs-1.so.1 (0xb7c4a000)
        libsvn_ra_svn-1.so.1 => /usr/lib/libsvn_ra_svn-1.so.1 (0xb7c35000)
        libsvn_ra_neon-1.so.1 => /usr/lib/libsvn_ra_neon-1.so.1 (0xb7c16000)
        libsvn_ra_serf-1.so.1 => /usr/lib/libsvn_ra_serf-1.so.1 (0xb7bf6000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7be1000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb7bdd000)
        librt.so.1 => /lib/i686/cmov/librt.so.1 (0xb7bd3000)
        libcrypt.so.1 => /lib/i686/cmov/libcrypt.so.1 (0xb7ba1000)
        libdl.so.2 => /lib/i686/cmov/libdl.so.2 (0xb7b9d000)
        /lib/ld-linux.so.2 (0xb7f15000)
        libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0xb7b5a000)
        liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0xb7b4d000)
        libdb-4.6.so => /usr/lib/libdb-4.6.so (0xb7a19000)
        libpq.so.5 => /usr/lib/libpq.so.5 (0xb79fa000)
        libmysqlclient_r.so.15 => /usr/lib/libmysqlclient_r.so.15 (0xb780f000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb77a0000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb777a000)
        libsvn_fs_fs-1.so.1 => /usr/lib/libsvn_fs_fs-1.so.1 (0xb775a000)
        libsvn_fs_base-1.so.1 => /usr/lib/libsvn_fs_base-1.so.1 (0xb7731000)
        libsvn_fs_util-1.so.1 => /usr/lib/libsvn_fs_util-1.so.1 (0xb772f000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7718000)
        libneon-gnutls.so.27 => /usr/lib/libneon-gnutls.so.27 (0xb76f8000)
        libserf-0.so.0 => /usr/lib/libserf-0.so.0 (0xb76ea000)
        libresolv.so.2 => /lib/i686/cmov/libresolv.so.2 (0xb76d6000)
        libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0xb7639000)
        libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8 (0xb75f3000)
        libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xb74a0000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb740b000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7408000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb73de000)
        libnsl.so.1 => /lib/i686/cmov/libnsl.so.1 (0xb73c5000)
        libm.so.6 => /lib/i686/cmov/libm.so.6 (0xb739f000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb737a000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7241000)
        libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb7231000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb722d000)
        libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb71c5000)
        libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb71bc000)
        libkeyutils.so.1 => /lib/libkeyutils.so.1 (0xb71b9000)

If any of these files in /lib and /usr/lib is missing, or cannot be
found because the files are located in a directory that is not searched
by the run-time linker ld.so (see the ld.so man page on Linux),
Subversion won't be able to start.

So to find out why you have this problem, we need more information
about your setup, because there are way too many potential reasons for
this kind of problem.

Stefan
Received on 2009-05-06 17:45:01 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.