Problem with install-Clam-SA's ./ script

Julian Field MailScanner at
Mon Sep 26 18:49:26 IST 2005

Hash: SHA1

I have added code to the script to check for this and add the 
appropriate line if necessary, before the Mail::ClamAV module is built. 
Should make it easier for novice sysadmins, which is always worth doing 
where I can.

Julian Field wrote:

>* PGP Signed by an unmatched address: 09/26/05 at 18:33:57
>It's not actually a bug in my script really. You need to add 
>/usr/local/lib to your /etc/ file so that it knows to look for 
>libraries in /usr/local/lib. Then Mail::ClamAV will be able to work.
>As for the other problem, upgrade MailScanner to my latest beta and the 
>output goes away. It's quite harmless, feel free to ignore it.
>Quentin Campbell wrote:
>>Am running MS 4.45.4-1 with SA 3.0.4 and ClamAV 0.87 on a RHAS4 system.
>>Want to upgrade to SA 3.1.0 so unpacked the "install-Clam-SA" tar ball.
>>When did "" got:
>>Finished Build Compile Stage^M
>>Manifying blib/man3/Mail::ClamAV.3pm^M
>>PERL_DL_NONLAZY=3D1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
>>"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t^M
>>t/Mail-ClamAV....#     Failed test (t/Mail-ClamAV.t at line 9)^M
>>#     Tried to use 'Mail::ClamAV'.^M
>>#     Error:  Had problems bootstrapping Inline module 'Mail::ClamAV'^M
>># ^M
>># Can't load
>>'/tmp/Mail-ClamAV-0.17/blib/arch/auto/Mail/ClamAV/' for module
>>Mail::ClamAV: cannot open shared object file: No such
>>file or directory at
>>/usr/lib/perl5/5.8.5/i386-linux-thread-multi/ line 230.^M
>>#  at /usr/lib/perl5/site_perl/5.8.5/ line 500^M
>># ^M
>># ^M
>>#  at /tmp/Mail-ClamAV-0.17/blib/lib/Mail/ line 188^M
>># BEGIN failed--compilation aborted at
>>/tmp/Mail-ClamAV-0.17/blib/lib/Mail/ line 532.^M
>># Compilation failed in require at (eval 1) line 2.^M
>>^Mt/Mail-ClamAV....NOK 1"all" is not defined in
>>%Mail::ClamAV::EXPORT_TAGS at t/Mail-ClamAV.t line 11^M
>>Can't continue after import errors at t/Mail-ClamAV.t line 11^M
>># Looks like you planned 10 tests but only ran 1.^M
>>       Test returned status 10 (wstat 2560, 0xa00)^M
>>DIED. FAILED tests 1-10^M
>>       Failed 10/10 tests, 0.00% okay^M
>>Failed Test     Stat Wstat Total Fail  Failed  List of Failed^M
>>Ignored this as not using 'clamavmodule'.=20
>>However when doing 'spamassassin -D' get indication that all is not well
>>with 3.1.0:
>>[10935] warn: Use of uninitialized value in pattern match (m//) at
>>/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/ line
>>[10935] warn: Use of uninitialized value in concatenation (.) or string
>>at /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/ line
>>X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on
>>Have looked through the MailScanner list for clues and googled the
>>problem but am none the wiser. Have I missed something in the recent
>>flurry of MailScanner list traffic?
>>PHONE: +44 191 222 8209    Information Systems and Services (ISS),
>>                          University of Newcastle,
>>                          Newcastle upon Tyne,
>>FAX:   +44 191 222 8765    United Kingdom, NE1 7RU.
>>Any opinion expressed above is mine. The University can get its own.=20
>>------------------------ MailScanner list ------------------------
>>To unsubscribe, email jiscmail at with the words:
>>'leave mailscanner' in the body of the email.
>>Before posting, read the Wiki ( and
>>the archives (
>>Support MailScanner development - buy the book off the website!

- -- 
Julian Field
Buy the MailScanner book at
Professional Support Services at
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

Version: PGP Desktop 9.0.2 (Build 2424)


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki ( and
the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list