Project

General

Profile

Support #339

Compiling ClamAV From Source

Added by Daniel Curtis almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Mail Server
Target version:
-
Start date:
02/19/2014
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

While checking through the logs of my mail server I found the following error:

Tue Feb 18 15:45:30 2014 -> Received signal: wake up
Tue Feb 18 15:45:30 2014 -> ClamAV update process started at Tue Feb 18 15:45:30 2014
Tue Feb 18 15:45:30 2014 -> WARNING: Your ClamAV installation is OUTDATED!
Tue Feb 18 15:45:30 2014 -> WARNING: Local version: 0.97.8 Recommended version: 0.98.1
Tue Feb 18 15:45:30 2014 -> DON'T PANIC! Read http://www.clamav.net/support/faq

I made sure the system was up to date, however Debian Wheezy does not currently have the latest version in its repositories. So I decided to compile ClamAV from source.

Start by removing any previous ClamAV installation:

apt-get remove --purge clamav

Then resolve the building dependencies:

apt-get build-dep clamav
cd /usr/local/src

Download and extract the latest ClamAV:

wget http://downloads.sourceforge.net/clamav/clamav-0.98.1.tar.gz
tar xzf clamav-0.98.1.tar.gz
cd clamav-0.98.1

Configure, build and install ClamAV:

./configure --enable-experimental
make
make install

Update the antivirus database:

cp /etc/clamav/freshclam.conf /usr/local/etc/
freshclam

Start the ClamAV service:

service clamav-daemon start
service clamav-freshclam start

Now ClamAV is up to date.

Also available in: Atom PDF