Skip to content

Instantly share code, notes, and snippets.

@etdev
Last active August 29, 2015 14:12
Show Gist options
  • Save etdev/666355a6879804d75095 to your computer and use it in GitHub Desktop.
Save etdev/666355a6879804d75095 to your computer and use it in GitHub Desktop.
Installing ZNC from source on Linux

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).

  1. First, install the required dependencies.
apt-get install build-essential libssl-dev libperl-dev pkg-config
  1. Next, install the OpenSSL Development package, which is required to use SSL with ZNC.
apt-get install libssl-dev
  1. 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
  1. Extract the file.
tar -xzvf znc*.*gz
  1. CD into the created folder
cd znc*
  1. Compile the files
./configure && make && make install

####CentOS/Fedora/Red Hat

(I recommend installing as root if possible, or using sudo otherwise).

  1. Install GCC if you don't have it.
yum install gcc 
  1. Install the following openSSL packages to enable SSL.
yum install openssl openssl-devel
  1. 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
  1. Extract the file.
tar -xzvf znc*.*gz
  1. CD into the created folder
cd znc*
  1. Compile the files
./configure && make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment