Corrections to CentOS and Debian install guides.

pull/111/head
Micah Snyder (micasnyd) 7 years ago committed by Micah Snyder
parent 2b5c743d1e
commit 9eeaf14a72
  1. 6
      docs/UserManual/Installation-Unix/Steps-Debian-Ubuntu.md
  2. 25
      docs/UserManual/Installation-Unix/Steps-Redhat-CentOS.md

@ -11,7 +11,11 @@ Below are the steps for installing ClamAV from source on Debian and Ubuntu Linux
```
2. Install library dependencies
```bash
sudo apt-get install openssl libssl-dev zlib1g-dev libpng-dev libxml2-dev libjson-c-dev libbz2-dev libpcre3-dev
sudo apt-get install openssl libssl-dev libcurl4-openssl-dev zlib1g-dev libpng-dev libxml2-dev libjson-c-dev libbz2-dev libpcre3-dev ncurses-dev
```
3. (very optional) Those wishing to use clamav-milter may wish to install the following
```bash
sudo apt-get install libmilter1.0.1 libmilter-dev
```
2. Install the unit testing dependencies

@ -1,22 +1,26 @@
# Installation on Debian and Ubuntu Linux Distributions
# Installation on Redhat and CentOS Linux Distributions
Below are the steps for installing ClamAV from source on Debian and Ubuntu Linux.
Below are the steps for installing ClamAV from source on Redhat and CentOS Linux.
## Install prerequisites
1. Install ClamAV dependencies
1. Install the developer tools
```bash
sudo apt-get install build-essential
sudo yum groupinstall "Development Tools"
```
2. Install library dependencies
```bash
sudo apt-get install openssl libssl-dev zlib-devel libpng-devel libxml2-devel json-c-devel bzip2-devel pcre2-devel
sudo yum install openssl openssl-devel libcurl-devel zlib-devel libpng-devel libxml2-devel json-c-devel bzip2-devel pcre2-devel ncurses-devel
```
3. (very optional) Those wishing to use clamav-milter may wish to install the following
```bash
sudo yum install sendmail sendmail-devel
```
2. Install the unit testing dependencies
```bash
sudo apt-get valgrind check
sudo yum valgrind check
```
_Note_: LLVM is also an optional dependency. LLVM will not provide any additional features, but is an alternative method for executing bytecode signatures versus using the built-in bytecode interpreter. Limited performance testing between LLVM and the bytecode interpreter did not yield conclusive evidence that one is "better" than the other. For the sake of simplicity, it is not recommended to install LLVM.
@ -272,17 +276,6 @@ If you installed to another location:
/<path>/<to>/<clamav>/<bin>/freshclam
```
_Important_: It is common on Ubuntu after a fresh install to see the following error the first time you use ClamAV:
```bash
$ freshclam
freshclam: error while loading shared libraries: libclamav.so.7: cannot open shared object file: No such file or directory
```
You can fix this error by using ldconfig to rebuild the library search path.
```bash
sudo ldconfig
```
#### Users and on user privileges
If you are running `freshclam` and `clamd` as root or with `sudo`, and you did not explicitely configure with `--disable-clamav`, you will want to ensure that the `DatabaseOwner` user specified in `freshclam.conf` owns the database directory so it can download signature udpates.

Loading…
Cancel
Save