Re: [BackupPC-users] "File::RsyncP module doesn't exist" but the perl module is installed
2010-11-05 09:00:44
On 11/5/10 6:59 AM, Farmol SPA wrote:
> -------- Original Message --------
> Subject: "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: Tue Oct 26 2010 11:20:38 GMT+0200 (ora Legale Europa Occidentale)
>> [...]
>> The error I get (by email) is:
>>> The following hosts had an error that is probably caused by a
>>> misconfiguration. Please fix these hosts:
>>> - localhost (File::RsyncP module doesn't exist)
>>>
>>> Regards,
>>> PC Backup Genie
>> (localhost is the server where BackupPC server is running).
>
> I looked into BackupPC's perl code.
>
> In /usr/share/backuppc/bin/BackupPC_dump I found
>
>> use BackupPC::Xfer::Rsync;
>
> So I went to /usr/share/backuppc/lib/BackupPC/Xfer/Rsync.pm and I found
> this snippet:
>
>> eval "use File::RsyncP;";
>> if ( $@ ) {
>> #
>> # Rsync module doesn't exist.
>> #
>> $RsyncLibOK = 0;
>> $RsyncLibErr = "File::RsyncP module doesn't exist";
>
> that's part of the error message I get in the mail.
>
> Then I tried to run the following from the CLI:
>
>> $ sudo su backuppc -
>> sh-3.2$ perl -e 'eval "use File::RsyncP;"; if ($@) {print "true\n";}
>> else {print "false\n";}'
>> false
>> sh-3.2$
>
> How is it possible? Am I doing the right thing to debug this issue or
> somebody can help me to find a clue?
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'. But, this is an odd situation.
Normally packaged installs would land in the right place and CPAN installs
figure it out at install time.
--
Les Mikesell
lesmikesell AT gmail DOT com
------------------------------------------------------------------------------
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/
|
|
|