I'm a perl newbie, and I'm getting this error when running a script. See below:
Can't locate LWP/UserAgent.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.8.0/mach /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.0/BSDPAN /usr/local/lib/perl5/5.8.0/mach /usr/local/lib/perl5/5.8.0 .)
Looks like it can't find the LWP/UserAgent module... What's that for anyway?
They just installed Perl on this server, and I don't think they installed everything...
How to install it will depend on whether you have shell access or not.
If so then
[url=http://www.perl.com/]Perl[/url] -M[url=http://www.perldoc.com/perl5.8.0/lib/CPAN.html]CPAN[/url] -e '[url=http://www.cpan.org/]CPAN[/url]::Shell->install("LWP::UserAgent")' will do the trick. In a Perl [perl.com] script you could do
[url=http://www.perldoc.com/perl5.8.0/pod/func/use.html]use[/url] [url=http://www.perldoc.com/perl5.8.0/lib/CPAN.html]CPAN[/url]; [url=http://www.perldoc.com/perl5.8.0/lib/CPAN.html]CPAN[/url]::Shell->install("LWP::UserAgent");. HTH Andreas