Koozali.org: home of the SME Server

ClamAV on 5.5

RobW

ClamAV on 5.5
« on: February 27, 2004, 07:15:18 AM »
Hi all, I have been working through adding ClamAV on a 5.5 server and started with the automated install at http://sme.swerts-knudsen.dk/howtos/howto_22.htm

After working through this, I got the following error when I tried to run the /usr/bin/qmail-queue.amavis command:

AMAVIS: Couldn't load AMAVIS::Extract::Mail at /usr/lib/perl5/site_perl/5.6.1/AMAVIS.pm line 247, <GEN2> line 520.

I then worked through the manual version of the install (not re-installing but just checking everything) as on http://pagefault.org/howto/amavis_clam.shtml.

I am still getting the same error at the same point.

Can anyone help? I have searched the forums and can't find anything talking about the AMAVIS Extract Mail process. :-?

damien

Re: ClamAV on 5.5
« Reply #1 on: February 29, 2004, 09:33:47 PM »
Quote from: "RobW"
Hi all, I have been working through adding ClamAV on a 5.5 server and started with the automated install at http://sme.swerts-knudsen.dk/howtos/howto_22.htm

After working through this, I got the following error when I tried to run the /usr/bin/qmail-queue.amavis command:

AMAVIS: Couldn't load AMAVIS::Extract::Mail at /usr/lib/perl5/site_perl/5.6.1/AMAVIS.pm line 247, <GEN2> line 520.

I then worked through the manual version of the install (not re-installing but just checking everything) as on http://pagefault.org/howto/amavis_clam.shtml.

I am still getting the same error at the same point.

Can anyone help? I have searched the forums and can't find anything talking about the AMAVIS Extract Mail process. :-?


Your missing a perl module, to find out which one run this command:

perl -e 'use AMAVIS::Extract::Mail'

And let us know which module it sayd it cannot find, eg output will be:

bash-2.05a$ perl -e 'use AMAVIS::Extract::Mail'
Can't locate IO/File.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Mail.pm line 15.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Mail.pm line 15.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

RobW

ClamAV on 5.5
« Reply #2 on: March 04, 2004, 01:21:37 AM »
Damien,

thanks heaps for having a look at this. I ran the command you suggested with the following results.

Any ideas?

Rob

[root@proxy2 root]# perl -e 'use AMAVIS::Extract::Mail'
Can't locate Mail/Header.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl .) at
/usr/lib/perl5/site_perl/5.6.1/MIME/Head.pm line 119.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/MIME/Head.pm line 119.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.1/MIME/Parser.pm line 147.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/MIME/Parser.pm line 147.
Compilation failed in require at
/usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Mail.pm line 14.
BEGIN failed--compilation aborted at
/usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Mail.pm line 14.
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Anonymous

ClamAV on 5.5
« Reply #3 on: March 07, 2004, 07:02:39 AM »
Following is the email conversation with Damien that ended up fixing this issue. Thanks, Damien, for your time and effort!

>> Hi Damien,
>>
>> I ran the command you sent with the following results:
>>
>> [root@proxy2 root]# rpm -Uhv
>> http://www.pagefault.org/download/rpms/RPMS/i386/perl-MailTools-1.58-1.i386.rpm
>> Retrieving
>> http://www.pagefault.org/download/rpms/RPMS/i386/perl-MailTools-1.58-1.i386.rpm
>> Preparing...                ###########################################
>> [100%]
>> package perl-MailTools-1.60-0.rh73.dag (which is newer than
>> perl-MailTools-1.58-1) is already installed
>>
>> I then ran the other command with the same results as before:
>>
>> [root@proxy2 root]# perl -e 'use AMAVIS::Extract::Mail'
>> Can't locate Mail/Header.pm in @INC (@INC contains:
>> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
>> /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
>> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
>> /usr/lib/perl5/site_perl .) at
>> /usr/lib/perl5/site_perl/5.6.1/MIME/Head.pm
>> line 119.
>> BEGIN failed--compilation aborted at
>> /usr/lib/perl5/site_perl/5.6.1/MIME/Head.pm line 119.
>> Compilation failed in require at
>> /usr/lib/perl5/site_perl/5.6.1/MIME/Parser.pm line 147.
>> BEGIN failed--compilation aborted at
>> /usr/lib/perl5/site_perl/5.6.1/MIME/Parser.pm line 147.
>> Compilation failed in require at
>> /usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Mail.pm line 14.
>> BEGIN failed--compilation aborted at
>> /usr/lib/perl5/site_perl/5.6.1/AMAVIS/Extract/Mail.pm line 14.
>> Compilation failed in require at -e line 1.
>> BEGIN failed--compilation aborted at -e line 1.
>>
>>
>> Any ideas?
>
Your problem is that perl-MailTools-1.60-0.rh73.dag uses /usr/lib/perl5/vendor_perl which is not in your include path (@INC).

I've built perl-MailTools-1.60 with the e-smith support INC path:

http://www.pagefault.org/download/rpms/RPMS/i386/perl-MailTools-1.60-1.i386.rpm

rpm -Uhv http://www.pagefault.org/download/rpms/RPMS/i386/perl-MailTools-1.60-1.i386.rpm

to install.