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 test for the 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 supplementary groups.
After you have created the clamav user/group, extract the archive:
$ zcat clamav-x.yz.tar.gz | tar xvf - $ cd clamav-x.yzAssuming you want the configuration file installed in /etc, configure the package as follows:
$ ./configure --sysconfdir=/etcCurrently gcc is required for the compilation. Support for other compilers will be added in a near future.
$ make $ su -c "make install"In the last step the software is installed in the /usr/local directory and the config file in /etc. WARNING: Never set SUID/SGID bit on Clam AntiVirus programs.