Build dependencies for software on Debian 8.
sudo aptitude install libldap2-dev uuid-dev
apt-key adv --keyserver "keys.gnupg.net" --recv-keys "573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62"
printf "deb http://nginx.org/packages/mainline/debian/ $(lsb_release -cs) nginx\ndeb-src http://nginx.org/packages/mainline/debian/ $(lsb_release -cs) nginx\n" > "/etc/apt/sources.list.d/nginx.list"
The following is required for the websocket module to work properly if the installed lua version is lower than 5.2.
sudo aptitude install luarocks
sudo luarocks install bit32
See the ZNC installation manual.
sudo aptitude install build-essential libicu-dev libperl-dev libssl-dev pkg-config