After upgrading Mail-ClamAV: ClamAV Perl module not found, did you install it?

Keith Wessel kwessel at intenex.net
Mon Feb 19 20:30:32 CET 2007


Hello,

A little more to go on...

First, MailScanner's running as root, so it's definitely not a
permissions problem.

I went ahead and put a "require Mail::ClamAV" at the top of my
/usr/sbin/MailScanner to see what would happen, and I got the following.
Looks like the Perl module can't find libclamav.so.1 (installed under
/usr/local/lib which I added to ld.so.conf). Even with /usr/local/lib in
ld.so.conf, I still get:

         MailScanner:       Had problems bootstrapping Inline module
'Mail::ClamAV'

Can't load
'/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Mail/ClamAV/ClamAV.so'
for module Mail::ClamAV: libclamav.so.1: cannot open shared object file:
No such file or directory at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
 at /usr/lib/perl5/site_perl/5.8.0/Inline.pm line 500


 at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Mail/ClamAV.pm
line 188
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Mail/ClamAV.pm
line 532.
Compilation failed in require at /usr/sbin/MailScanner line 38.

Any thoughts from anyone on how to tell the Perl module where
libclamav.so.1 is?

Thanks,
keith

On Mon, Feb 19, 2007 at 07:12:07PM +0100, Glenn Steen wrote:
> On 19/02/07, Keith Wessel <kwessel at intenex.net> wrote:
> >Hi,
> >
> >Nope, not running an RPM of ClamAV. In fact, because of my RHEL3 box not
> >giving me the latest and greatest, I find it safer to run things like
> >ClamAV compiled myself.
> Good strategy
> 
> >clamsan --version reports:
> >ClamAV 0.88.7/2605/Mon Feb 19 10:42:14 2007
> Looks Ok.
> 
> >It appears that MailScanner simply isn't finding the module. (and a look
> >at the MailScanner source code indicates that the ClamAV Perl module not
> >found log message is only generated when a 'require Mail::ClamAV' fails.
> >
> >Any other thoughts on why it's not finding it?
> I surely don't know, but ... Do you perhaps run your MTA as another
> user than what you tested the require as? And that user might be
> having some strange, perhaps permission-related, problem
> finding/reading the module?
> 
> -- 
> -- Glenn
> email: glenn < dot > steen < at > gmail < dot > com
> work: glenn < dot > steen < at > ap1 < dot > se
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list