next up previous contents
Next: Configuration Up: Installation Previous: Binary packages   Contents

Installation

Please read the README file in the current version, because it may contain some important release notes. If you are installing ClamAV for the first time, you have to add a new clamav user and group to your system: 3

	# groupadd clamav
	# useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav

The above method works on Linux and Solaris, in case you don't have groupadd, useradd please consult a system manual. If you are installing ClamAV on user account you may omit this step with the option -disable-clamav passed to the configure script:

	$ ./configure --disable-clamav
This disables test for the clamav user and group. clamscan still requires clamav to work in the superuser mode. The password for the clamav account should be locked in /etc/passwd or /etc/shadow.

Once you have created the clamav user and group, please extract the archive:

	$ zcat clamav-x.yz.tar.gz | tar xvf -
	$ cd clamav-x.yz
Assuming you want to have the configuration file installed in /etc, configure the package as follows:
	$ ./configure --sysconfdir=/etc
Currently 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 software is installed in the /usr/local directory and the config file in /etc. WARNING: Never set SUID or SGID bits on Clam AntiVirus programs.


next up previous contents
Next: Configuration Up: Installation Previous: Binary packages   Contents
Tomasz Kojm 2003-11-11