我尝试安装 ASSP(反垃圾邮件 SMTP 代理服务器),但是当我尝试启动它时,出现以下信息:
$ perl assp.pl
Perl version 5.012003 (5.12.3) is at least recommended to run ASSP 2.4.3
(14313) - you are running Perl version 5.010001 - please upgrade Perl
Perl version 5.012000 (5.12.0) is at least required to use the
unicode Bayesian/HMM engine of ASSP 2.4.3 (14313) - you are running
Perl version 5.010001 - please upgrade Perl
ASSP 2.4.3(14313) is starting in directory /usr/share/assp
on host web.lehoste.com
using Perl /usr/bin/perl version 5.010001 (5.10.1)
compiling code please wait ..... checking config in /usr/share/assp/assp.cfg - OK
ASSP uses AsspSelfLoader 2.03 - check [OK]
loading configuration [OK]
1085 values loaded [OK]
defining environment [OK]
setting up global ENV [OK]
loading modules.........u? [failed] - errors are written to file /usr/share/assp/module LoadErrors.txt
loading database drivers [OK]
setup regular expressions [OK]
loading plugins [OK]
fixing up config [OK]
starting as daemon [OK]
forked a new silent process [OK]
当我检查日志文件时,我看到许多模块未加载:
module Authen::SASL could not be loaded (see error below): check with >perl -e "use Authen::SASL;"
module Mail::SPF::Query could not be loaded (see error below): check with >perl -e "use Mail::SPF::Query;"
module Regexp::Optimizer could not be loaded (see error below): check with >perl -e "use Regexp::Optimizer;"
module Text::Unidecode could not be loaded (see error below): check with >perl -e "use Text::Unidecode;"
module ASSP_WordStem could not be loaded (see error below): check with >perl -e "use ASSP_WordStem;"
module Sys::CpuAffinity
module BerkeleyDB could not be loaded (see error below): check with >perl -e "use BerkeleyDB;"
Can't locate BerkeleyDB.pm in @INC (@INC contains: /usr/share/assp/lib /root/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_$
BEGIN failed--compilation aborted at (eval 74) line 1, <DATA> line 751.
关于如何解决这个问题有什么建议吗?
答案1
根据前 3 条消息,您似乎需要将 Perl 版本至少升级到 5.12.3。
Perl version 5.012003 (5.12.3) is at least recommended to run ASSP 2.4.3
(14313) - you are running Perl version 5.010001 - please upgrade Perl
Perl version 5.012000 (5.12.0) is at least required to use the
unicode Bayesian/HMM engine of ASSP 2.4.3 (14313) - you are running
Perl version 5.010001 - please upgrade Perl
我会从这样做开始。一旦您拥有 5.12.3 或更高版本,我将确认该输出中列出的所有模块也已安装。使用 CentOS,您通常可以使用yum
.
如果没有可用于给定 Perl 模块的 RPM 包,我建议使用cpanminus
安装其他的。它在消除依赖关系以及您尝试安装的任何模块方面做得非常出色。