Mail-ClamAV-0.29 doesn't build

Remco Barendse mailscanner at
Sat Nov 26 03:25:03 GMT 2011

Hi list,

I am trying to upgrade some boxes to Scientific Linux 6.1 (a RHEL6 
rebuild). When installing mailscanner and the clam/spamass packages not 
all the perl modules will build. Most that wouldn't build (perl-Time-HiRes 
perl-Encode-Detect perl-Mail-SPF-Query perl-Mail-DKIM perl-Module-Build 
perl-Net-DNS-Resolver-Programmable) i found in the rpmforge repo.

It seems however that Mail-ClamAV from install-Clam-0.96.5-SA-3.3.1 also 
doesn't want to build, when installing i get the output below.  I thought 
it was missing lbzip2 but when i installed that, it still did not build.

Where am i going wrong?


/usr/bin/ld: cannot find -lbz2
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/Mail/ClamAV/] Error 1
make[1]: Leaving directory 

A problem was encountered while attempting to compile and install your 
C code. The command that failed was:

The build directory was:

To debug the problem, cd to the build directory, and inspect the output 

  at /tmp/Mail-ClamAV-0.29/blib/lib/Mail/ line 162
BEGIN failed--compilation aborted at 
/tmp/Mail-ClamAV-0.29/blib/lib/Mail/ line 556.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [ClamAV.inl] Error 25

More information about the MailScanner mailing list