Debian/Ubuntu - Can't locate LWP/UserAgent.pm in @INC

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2011-08-09 10:30. :: Errors

Error: Debian/Ubuntu - Can't locate LWP/UserAgent.pm in @INC

You get an error like this one:

Can't locate LWP/UserAgent.pm in @INC (@INC contains: /home/admispconfig/ispconfig/tools/spamassassin/usr/share/perl/5.10.0 /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update line 81.
BEGIN failed--compilation aborted at /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-update line 81.

 

Solution

Install the libwww-perl package:

apt-get install libwww-perl

On Ubuntu you have to prepend the command with sudo if you are not logged in as root:

sudo apt-get install libwww-perl


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.