如果您在Debian或Ubuntu Server上收到如下错误信息,请查看以下解决方案:
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.
解
使用apt安装libwww-perl
软件包:
apt-get install libwww-perl
在Ubuntu上,如果您没有以root用户身份登录,则必须先使用sudo命令:
sudo apt-get install libwww-perl