- Log in to post comments
I stopped receiving email after an upgrade. Starting the amavisd service shows the errors:
Starting Mail Virus Scanner (amavisd): fetch_modules: error loading required module Compress/Zlib.pm:
dualvar is only available with the XS version of Scalar::Util at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 8
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line 8.
Compilation failed in require at /usr/sbin/amavisd line 197.
ERROR: MISSING REQUIRED BASIC MODULES:
Compress::Zlib
BEGIN failed--compilation aborted at /usr/sbin/amavisd line 237.
[FAILED]
To solve the issue I did a "Hack" to the actual library that is causing the problem.
$sudo vi /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm and checked on the problematic line (8)
1. Remove the qw(dualvar) entry on that line. Which looks like this: use Scalar::Util qw(dualvar);
2. Save the file
3. Re-start amavis: service amavisd restart