• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 378
  • Last Modified:

amavisd-new start error

I install Amavisd-new 2.1.2 in Redhat 9.0
When I start amavisd, it show me the folloing error:
Starting amavisd: Problem in Amavis::DB or Amavis::DB::SNMP code: Can't locate BerkeleyDB.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/per
l5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0) at (eval 34) line 11.
BEGIN failed--compilation aborted at (eval 34) line 11.

I have updated perl to 5.8.5
[root@localhost download]# perl -v
This is perl, v5.8.5 built for i686-linux

and install the modules BerkeleyDB
cpan>install BerkeleyDB
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
  Database was generated on Tue, 02 Nov 2004 20:13:16 GMT
BerkeleyDB is up to date.

Anyone give me a hand?
  • 2
1 Solution
"@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi" tends to indicate that the RH9 copy of Perl 5.8.0 is still installed and is what amavisd is trying to use. The quick fix for the missing BerkeleyDB perl module is to install the perl-DB-file package from your RH 9 CD's.
alsonluoAuthor Commented:
I installed the perl-DB-File module
cpan>minstall DB_File
DB_File is up to date.
That's not the same as installing the perl-DB-file package from your RedHat distribution. I'd guess that using cpan for the installation places the module in /usr/local, which isn't here the system copy (5.8.0) is looking. Short of completely removing the RedHat copy of Perl and replacing it with a later version (which is going to lead to breaking a number of things) you need to stick with the RedHat version if you want to use AmaVis

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now