Problem With Installation Perl Clamav Module

Julian Field MailScanner at ecs.soton.ac.uk
Tue May 9 11:38:39 IST 2006


If you had used my easy-to-install ClamAV and SpamAssassin package,  
you wouldn't have had this problem :-)

You need to add /usr/local/lib to your /etc/ld.so.conf file and then  
run the ldconfig command.

On 9 May 2006, at 07:21, ShaunM [MailShield] wrote:

> Hey Guys,
>
> Following Julians Instructions below I followed through all the  
> steps to
> install the module and it only failed on the MAIL::CLAMAV  
> installation.
>
> The O/S is Centos 4.3
>
>    1. Download and install ClamAV from www.clamav.net as usual.
>    2. The default locations are under /usr/local/{bin,man,share}.
>    3. Do the following:
>       perl -MCPAN -e shell
>       install Parse::RecDescent
>       install Inline
>       install Mail::ClamAV
>    4. In MailScanner.conf, set 'Virus Scanners = clamavmodule'.
>    5. In MailScanner.conf, check the setting of 'Monitors for ClamAV
> Updates' to ensure it matches the location of your ClamAV virus  
> database
> files.
>
> The output is below, fails on make test anyone can shed some light  
> on this?
>
> Thanks
> Shaun
>
>
>
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/Mail-ClamAV....NOK 1#     Failed test (t/Mail-ClamAV.t at line 9)
>
> #     Tried to use 'Mail::ClamAV'.
> #     Error:  Had problems bootstrapping Inline module 'Mail::ClamAV'
> #
> # Can't load
> '/root/.cpan/build/Mail-ClamAV-0.17/blib/arch/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.5/i386-linux-thread-multi/DynaLoader.pm line 230.
> #  at /usr/lib/perl5/site_perl/5.8.5/Inline.pm line 500
> #
> #
> #  at /root/.cpan/build/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm  
> line 188
> # BEGIN failed--compilation aborted at
> /root/.cpan/build/Mail-ClamAV-0.17/blib/lib/Mail/ClamAV.pm line 532.
> # Compilation failed in require at (eval 1) line 2.
> "all" is not defined in %Mail::ClamAV::EXPORT_TAGS at t/Mail- 
> ClamAV.t line
> 11
> Can't continue after import errors at t/Mail-ClamAV.t line 11
> # Looks like you planned 10 tests but only ran 1.
> t/Mail-ClamAV....dubious
>
> 	Test returned status 10 (wstat 2560, 0xa00)
> DIED. FAILED tests 1-10
> 	Failed 10/10 tests, 0.00% okay
> Failed Test     Stat Wstat Total Fail  Failed  List of Failed
> ---------------------------------------------------------------------- 
> ------
> ---
> t/Mail-ClamAV.t   10  2560    10   19 190.00%  1-10
> Failed 1/1 test scripts, 0.00% okay. 10/10 subtests failed, 0.00%  
> okay.
> make: *** [test_dynamic] Error 2
>   /usr/bin/make test -- NOT OK
> Running make install
>   make test had returned bad status, won't install without force
>
>
>
>
> ---------------------------------------------------------------------- 
> -----------------------------------
> This message has been scanned for viruses and malicious content by  
> MailShield http://www.mailshield.com.au
>
>
>
> -- 
> 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!

-- 
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the MailScanner mailing list