rdiff

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rdiff

Brian Hill-12
        I can build the latest rdiff on a Sun system without
a problem (except for lots varargs warnings in building librsync),
but it will not run - no matter how I specify -R & -L linker
flags or specifying LD_LIBRARY_PATH.

        I have built this on other Sun and Linux systems without a
problem.

        Just simply calling rdiff-backup dumps this:

-----------------------------------------------------------------
   Traceback (most recent call last):
 File "/usr/pkg/python/bin/rdiff-backup", line 20, in ?
   import rdiff_backup.Main
 File
"/usr/pkg/python/lib/python2.4/site-packages/rdiff_backup/Main.py", line
25, in ?
   import Globals, Time, SetConnections, selection, robust, rpath, \
 File
"/usr/pkg/python/lib/python2.4/site-packages/rdiff_backup/SetConnections.py",
line 30, in ?
   import Globals, connection, rpath
 File
"/usr/pkg/python/lib/python2.4/site-packages/rdiff_backup/connection.py",
line 534, in ?
   import Globals, Time, Rdiff, Hardlink, FilenameMapping, C, Security, \
 File
"/usr/pkg/python/lib/python2.4/site-packages/rdiff_backup/Rdiff.py",
line 22, in ?
   import os, librsync
 File
"/usr/pkg/python/lib/python2.4/site-packages/rdiff_backup/librsync.py",
line 27, in ?
   import _librsync, types, array
ImportError: ld.so.1: /usr/pkg/python/bin/rdiff-backup: fatal:
librsync.so.1: open failed: No such file or directory
-----------------------------------------------------------------

        What am I doing wrong? Is an old Python installation (this system
has 2.2 and 2.3) interfering?

        I am using:

        python: 2.4
        librsync: 0.9.7
        uname: SunOS admin 5.8 Generic_117350-25 sun4u sparc SUNW,Ultra-5_10
        gcc: 2.95.3 20010315 (release)

Thanks for any clues.

Brian


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: rdiff

dean gaudet-4
On Wed, 1 Mar 2006, Brian C. Hill wrote:

> ImportError: ld.so.1: /usr/pkg/python/bin/rdiff-backup: fatal:
> librsync.so.1: open failed: No such file or directory
> -----------------------------------------------------------------
>
> What am I doing wrong? Is an old Python installation (this system
> has 2.2 and 2.3) interfering?
>
> I am using:
>
> python: 2.4
> librsync: 0.9.7

are you sure librsync is where python is looking for it?  i.e. the path to
it is in /etc/ld.so.conf or in your LD_LIBRARY_PATH?

-dean


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: rdiff

Brian Hill-12
        I found the problem - a weird one.

        At some point, someone had run crle with several -i <dir> options,
which I am guessing causes crle to load all of the libraries (not lib
dirs) found in the specified dirs in ld.so.cache. That configuration
seems to preempt ld from loading any 'new' libraries at all - regardles
of LD_LIBRARY_PATH contents.

        Anyway, running crle with just -l args fixed the problem.

        Sorry for the false alarm, and thanks for the reponse.

Brian
======================================================================
On Sat, Mar 11, 2006 at 01:39:38PM -0800, dean gaudet wrote:

> On Wed, 1 Mar 2006, Brian C. Hill wrote:
>
> > ImportError: ld.so.1: /usr/pkg/python/bin/rdiff-backup: fatal:
> > librsync.so.1: open failed: No such file or directory
> > -----------------------------------------------------------------
> >
> > What am I doing wrong? Is an old Python installation (this system
> > has 2.2 and 2.3) interfering?
> >
> > I am using:
> >
> > python: 2.4
> > librsync: 0.9.7
>
> are you sure librsync is where python is looking for it?  i.e. the path to
> it is in /etc/ld.so.conf or in your LD_LIBRARY_PATH?
>
> -dean

--
   _____________________________________________________________________
  / Brian C. Hill [hidden email]   http://brian.bch.net        \
  | UNIX Specialist BCH Technical Services http://www.bch.net        |


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki