In this gist I will explain how to install ZNC from source in Ubuntu/Debian, and CentOS/Fedora/Red Hat Linux.
####Ubuntu/Debian: (I recommend installing as root if possible, or using sudo otherwise).
- First, install the required dependencies.
apt-get install build-essential libssl-dev libperl-dev pkg-config
- Next, install the OpenSSL Development package, which is required to use SSL with ZNC.
apt-get install libssl-dev
- cd to wherever you want to download the source files and download the latest version (ver. 1.4 at the time of writing).
cd ~/downloads
wget http://znc.in/releases/znc-latest.tar.gz
- Extract the file.
tar -xzvf znc*.*gz
- CD into the created folder
cd znc*
- Compile the files
./configure && make && make install
####CentOS/Fedora/Red Hat
(I recommend installing as root if possible, or using sudo otherwise).
- Install GCC if you don't have it.
yum install gcc
- Install the following openSSL packages to enable SSL.
yum install openssl openssl-devel
- cd to wherever you want to download the source files and download the latest version (ver. 1.4 at the time of writing).
cd ~/downloads
wget http://znc.in/releases/znc-latest.tar.gz
- Extract the file.
tar -xzvf znc*.*gz
- CD into the created folder
cd znc*
- Compile the files
./configure && make && make install