runpsync triggers error - Can't locate MacOSX/File.pm
Rainer Müller
raimue at macports.org
Wed Mar 25 15:33:13 PDT 2009
Bill Hernandez wrote:
> I normally do everything associated with MacPorts via the Terminal,
> but the other day I updated all the ports installed using
> PortAuthority, and it installed perl
>
> I changed :
>
> FROM : #!/usr/bin/perl
> TO : #!/opt/local/bin/perl
>
> In both /usr/bin/runpsync, and /usr/bin/psync
I assume you meant /usr/local/bin here?
> in psync I also changed :
>
> FROM : # eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
> TO : eval '/opt/local/bin/perl -S $0 ${1+"$@"}'
Looks good.
> [2009.25.03](04:30PM) -> [roscoe] ~ $ sudo /usr/local/bin/runpsync 0 -
> d 0 '/' '/Volumes/Backup_5'
> Password:
> Backup begun Wed Mar 25 16:31:16 2009
> Can't locate DB_File.pm in @INC (@INC contains:
> /opt/local/lib/perl5/5.8.9/darwin-2level
> /opt/local/lib/perl5/5.8.9
> /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level
> /opt/local/lib/perl5/site_perl/5.8.9
> /opt/local/lib/perl5/site_perl
> /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level
> /opt/local/lib/perl5/vendor_perl/5.8.9
> /opt/local/lib/perl5/vendor_perl/5.8.8
> /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level
> /opt/local/lib/perl5/vendor_perl .) at
> /usr/local/bin/psync line 13.
>
> BEGIN failed--compilation aborted at /usr/local/bin/psync line 13.
> Backup completed: Wed Mar 25 16:31:16 2009[2009.25.03](04:31PM) ->
> [roscoe] ~ $
Looks like http://trac.macports.org/ticket/18111
You need perl5.8 +db to get DB_File.pm. To add the variant to perl5.8
which you already have installed, run:
sudo port -fn upgrade perl5.8 +db
> I just found :
>
> http://developers.slashdot.org/article.pl?sid=09/02/18/1435227
>
> http://www.theregister.co.uk/2009/02/16/apple_update_perl_breakage/
As you are using Perl from MacPorts, bugs in the system version do not
affect you in this case.
Rainer
More information about the macports-users
mailing list