Bill Moseley <[EMAIL PROTECTED]> 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 @INC (@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