BackupPC-users

Re: [BackupPC-users] "File::RsyncP module doesn't exist" but the perl module is installed

2010-11-05 09:29:22
Subject: Re: [BackupPC-users] "File::RsyncP module doesn't exist" but the perl module is installed
From: Farmol SPA <farmolspa AT gmail DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Fri, 05 Nov 2010 14:27:17 +0100
-------- Original Message  --------
Subject: Re: [BackupPC-users] "File::RsyncP module doesn't exist" but
the perl module is installed
From: Les Mikesell <lesmikesell AT gmail DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri Nov 05 2010 13:58:31 GMT+0100 (ora Solare Europa Occidentale)
> Perl uses the @INC array as a search path to find modules, and appends .pm to 
> the name requested in a use or require statement.   'use lib '/path'; will 
> push 
> a new path on the @INC array.  So, use locate or find to see where the 
> File/Rsyncp.pm module lives on your system and add an appropriate 'use lib' 
> somewhere in the code before the 'use'.

Here below my tests:

> sh-3.2$ perl -e 'print "@INC\n";'
> /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0
> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10
> /usr/share/perl/5.10 /usr/local/lib/site_perl .
>
> sh-3.2$ find /usr/ -name RsyncP.pm
> /usr/lib/perl5/File/RsyncP.pm
>
> sh-3.2$ stat /usr/lib/perl5/File/RsyncP.pm
>   File: `/usr/lib/perl5/File/RsyncP.pm'
>   Size: 63660           Blocks: 128        IO Block: 4096   regular file
> Device: fe05h/65029d    Inode: 7902        Links: 1
> Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
> Access: 2010-11-05 14:00:18.000000000 +0100
> Modify: 2006-11-19 06:47:33.000000000 +0100
> Change: 2010-10-25 09:14:24.000000000 +0200

It seems OK, isn't?

>    But, this is an odd situation. 
> Normally packaged installs would land in the right place and CPAN installs 
> figure it out at install time.

No modules were installed via CPAN, instead I have the available deb
package (that is a dependency for backuppc). In this case it is

> $ apt-cache showpkg libfile-rsyncp-perl
> Package: libfile-rsyncp-perl
> Versions:
> 0.68-1.1+b1
> (/var/lib/apt/lists/ftp.it.debian.org_debian_dists_lenny_main_binary-i386_Packages)
> (/var/lib/dpkg/status)
>  Description Language:
>                  File:
> /var/lib/apt/lists/ftp.it.debian.org_debian_dists_lenny_main_binary-i386_Packages
>                   MD5: 0b792ffc9394425e6e7f05b2aa41deef
>
>
> Reverse Depends:
>   backuppc,libfile-rsyncp-perl 0.68
>   backuppc,libfile-rsyncp-perl 0.68
> Dependencies:
> 0.68-1.1+b1 - libc6 (2 2.7-1) perl (2 5.10.0-9) perlapi-5.10.0 (0 (null))
> Provides:
> 0.68-1.1+b1 -
> Reverse Provides:

What's wrong? :(


Alessandro

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/