Amavisd-new 无法启动 - 缺少 Unix::Syslog (CentOS)

Amavisd-new 无法启动 - 缺少 Unix::Syslog (CentOS)

我按照这里的基本说明安装 amavisd、spamassassin + clamav...

http://wiki.centos.org/HowTos/Amavisd

尝试启动 amavisd 时出现以下错误...

# service amavisd start
Starting Mail Virus Scanner (amavisd): ERROR: MISSING REQUIRED BASIC MODULES:
  Unix::Syslog
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.
                                                       [FAILED]

然而 perl unix syslog 似乎已经安装好了......

# yum install perl-Unix-Syslog.i386
Loaded plugins: fastestmirror, priorities, security, update-motd
Loading mirror speeds from cached hostfile
 * amzn-main: packages.us-east-1.amazonaws.com
 * amzn-updates: packages.us-east-1.amazonaws.com
 * rpmforge: mirror.us.leaseweb.net
amzn-main                                                                         | 2.1 kB      00:00
amzn-updates                                                                      | 2.3 kB     00:00
1539 packages excluded due to repository priority protections
Setting up Install Process
Package perl-Unix-Syslog-1.1-1.el5.rf.i386 already installed and latest version
Nothing to do

任何帮助/指点都将不胜感激。谢谢!

答案1

嗯,这对我来说都是新东西。如何安装 perl syslog 模块...

1)安装 Perl CPAN(如果尚未安装)

# yum install cpan

2)进入 Perl shell

# perl -MCPAN -e shell

3)现在在 cpan 提示符下,安装 Unix:Syslog

cpan[1]> install Unix::Syslog

我现在有一个进一步的错误需要解决,但这是另一个线程...

# service amavisd start
Starting Mail Virus Scanner (amavisd): Problem in Amavis::DB or Amavis::DB::SNMP code: Can't locate BerkeleyDB.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5) at (eval 82) line 19.
BEGIN failed--compilation aborted at (eval 82) line 19.

相关内容