unsuccesfull make Mail::ClamAV
t.d.lee at DURHAM.AC.UK
Sat Apr 9 11:25:57 IST 2005
On Sat, 9 Apr 2005, ius wrote:
> Trying to install Mail::Clamav-0.17 here, and unsuccesfull.
> [root at sigma Mail-ClamAV-0.17]# perl Makefile.PL
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Mail::ClamAV
> [root at sigma Mail-ClamAV-0.17]# make
> cp ClamAV.pm blib/lib/Mail/ClamAV.pm
> LD_RUN_PATH="/usr/lib" gcc -shared -L/usr/local/lib ClamAV.o -o
> blib/arch/auto/Mail/ClamAV/ClamAV.so -L/usr/lib -lz -lbz2 -lgmp -lcurl
> -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl
> -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err
> -lk5crypto -lresolv -ldl -lz -lz -lpthread -lclamav
> /usr/bin/ld: cannot find -lbz2
> collect2: ld returned 1 exit status
> make: *** [blib/arch/auto/Mail/ClamAV/ClamAV.so] Error 1
> make: Leaving directory
In my experience, the building and testing of Mail::ClamAV is sensitive to
local variations of things like "PATH" and "LD_RUN_PATH". Mail::ClamAV
depends on other software. That's fine: indeed, it is a good principle.
But if those things are not in the places "Mail:ClamAV" expects them on
your system, then errors such as you see above tend to occur. If this is
the case, you need to help it along, hold its hand, etc.
In your case, when attempting to link "Mail::ClamAV" to the libraries it
needs, it cannot find the libraries for "bz2". So firstly you need to
find out where the "bz2" library (probably called something like
"libbz2.so") lives on your system. Then you probably need to do something
like adjusting the LD_RUN_PATH environment variable (and "export" if your
shell requires it) to include this directory location that leads to that
library. Then rebuild. For safety, rebuild from scratch: "make clean;
perl Makefile.PL; make". (If you are comfortable with, and knowledgable
about, your shell, make, perl, etc., then you might be able to make some
shortcuts in the above.)
Note carefully the words "probably" and "something like" in the above.
It is intended as a guide to be read, interpreted and adapted; it isn't a
guaranteed recipe to work!
Hope that helps.
(I'm going to be out of email contact for the next week or so, so any
further help will have to come from other folk.)
: David Lee I.T. Service :
: Senior Systems Programmer Computer Centre :
: University of Durham :
: http://www.dur.ac.uk/t.d.lee/ South Road :
: Durham :
: Phone: +44 191 334 2752 U.K. :
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner