Please read the README file in the current version, because it probably contains some important release notes. If you are installing Clam AV for the first time, you have to add a new user and group to your system - clamav: 2
# groupadd clamav # useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav
The above method works on Linux and Solaris, if you don't have groupadd, useradd please consult your system manual - the section about creating new users and groups. If you are not a system administrator or won't be using clamscan in superuser mode, you may omit this step with the option -disable-clamav passed to the configure script:
$ ./configure --disable-clamavThis disables testing for clamav user and group. clamscan still requires clamav for superuser mode. Please don't set a password on this account, just assure it's locked with "!" in /etc/passwd or /etc/shadow. It must be a normal, unprivileged user. Don't add it to any special groups.
After this, extract the archive, configure and compile:
$ tar zxpvf clamav-x.yz.tar.gz $ cd clamav-x.yz $ ./configure; make $ su -c "make install"
WARNING: Never set SUID/SGID bit on Clam AntiVirus programs.