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

On this page

  1. Solution

If you get an error like this one on your Debian or Ubuntu Server, then check out the solution described below:

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.



Install the libwww-perl package with apt:

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
Share this page:

2 Comment(s)