7
7
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
10
<TITLE>Compilation of base package</TITLE>
11
<META NAME="description" CONTENT="Compilation of base package">
10
<TITLE>Installing on shell account</TITLE>
11
<META NAME="description" CONTENT="Installing on shell account">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
21
21
<LINK REL="next" HREF="node14.html">
22
22
<LINK REL="previous" HREF="node12.html">
23
<LINK REL="up" HREF="node9.html">
23
<LINK REL="up" HREF="node11.html">
24
24
<LINK REL="next" HREF="node14.html">
29
29
<DIV CLASS="navigation"><!--Navigation Panel-->
31
31
HREF="node14.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
35
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
37
37
HREF="node12.html">
38
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
41
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
43
<B> Next:</B> <A NAME="tex2html375"
44
HREF="node14.html">Compilation with clamav-milter enabled</A>
45
<B> Up:</B> <A NAME="tex2html371"
46
HREF="node9.html">Installation</A>
47
<B> Previous:</B> <A NAME="tex2html365"
48
HREF="node12.html">Adding new system user</A>
49
<B> <A NAME="tex2html373"
43
<B> Next:</B> <A NAME="tex2html379"
44
HREF="node14.html">Adding new system user</A>
45
<B> Up:</B> <A NAME="tex2html375"
46
HREF="node11.html">Installation</A>
47
<B> Previous:</B> <A NAME="tex2html369"
48
HREF="node12.html">Requirements</A>
49
<B> <A NAME="tex2html377"
50
50
HREF="node1.html">Contents</A></B>
53
53
<!--End of Navigation Panel-->
55
<H2><A NAME="SECTION00044000000000000000">
56
Compilation of base package</A>
55
<H2><A NAME="SECTION00042000000000000000">
56
Installing on shell account</A>
58
Once you have created the clamav user and group, please extract the archive:
60
$ zcat clamav-x.yz.tar.gz | tar xvf -
63
Assuming you want to install the configuration files in /etc, configure
64
and build the software as follows:
66
$ ./configure --sysconfdir=/etc
68
$ su -c "make install"
70
In the last step the software is installed into the /usr/local directory
71
and the config files into /etc. <SPAN CLASS="textbf">WARNING: Never enable the SUID
72
or SGID bits for Clam AntiVirus binaries.</SPAN>
58
To install ClamAV locally on an unprivileged shell account you need not
59
create any additional users or groups. Assuming your home directory is
60
<code>/home/gary</code> you should build it as follows:
62
$ ./configure --prefix=/home/gary/clamav --disable-clamav
65
To test your installation execute:
67
$ ~/clamav/bin/freshclam
68
$ ~/clamav/bin/clamscan ~
70
The <code>--disable-clamav</code> switch disables the check for existence of
71
the <SPAN CLASS="textit">clamav</SPAN> user and group but <code>clamscan</code> would still require an
72
unprivileged account to work in a superuser mode.