mirror.al

I'm trying to understand this error:

$ perl -MLWP::UserAgent -le 'LWP::UserAgent->new->mirror("http://perl.org", "perl.org" )'
Can't locate auto/LWP/UserAgent/mirror.al in [at] INC ( [at] INC contains: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at -e line 1


There's a few versions of Perl installed on this machine -- so I'm
wondering if there's some kind of conflict. Or if it's just a broken
Sun package.

$ perl -MLWP -le 'print $LWP::VERSION'
5.10

$ perl -v | head -2

This is perl, v5.8.0 built for sun4-solaris



--
Bill Moseley
moseley [at] hank.org
moseley [ Mo, 25 Oktober 2004 23:26 ] [ ID #447515 ]

Re: mirror.al

Bill Moseley <moseley [at] hank.org> writes:

> I'm trying to understand this error:
>
> $ perl -MLWP::UserAgent -le 'LWP::UserAgent->new->mirror("http://perl.org", "perl.org" )'
> Can't locate auto/LWP/UserAgent/mirror.al in [at] INC ( [at] INC contains: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at -e line 1

Looks like LWP was not installed with the normal 'perl Makefile.PL &&
make install' drill. This creates the .al files.

> There's a few versions of Perl installed on this machine -- so I'm
> wondering if there's some kind of conflict. Or if it's just a broken
> Sun package.
>
> $ perl -MLWP -le 'print $LWP::VERSION'
> 5.10

Newer versions of LWP do not use the autoloader and would not run into
this problem. This version of LWP is more than 7 years old. I
recommend something newer.

Regards,
Gisle
gisle [ Di, 26 Oktober 2004 08:21 ] [ ID #448418 ]
Perl » perl.libwww » mirror.al

Vorheriges Thema: Unicode bug in decode_entities?
Nächstes Thema: Help parsing an HTML Doc using HTML::TreeBuilder