mikaela.github.io/pages/external/zncinstall.html.md
2014-06-23 18:42:14 +03:00

2.8 KiB
Executable File
Raw Blame History

<!DOCTYPE html> <html> <head> </head>

This page tells you how to install ZNC from git. The package names are mainly for Debian based distributions, but you should be able to figure out what they are in other distributions and install them.

If you dont know what znc is, click here. If you are looking for the official installation instructions, click here.

I am going to presume that you dont install ZNC globally, if you do, remove the --PREFIX=$HOME/.local from your configure command.

Installing requirements

sudo apt-get build-dep znc
sudo apt-get install git swig libperl-dev python3-dev tcl-dev libsasl2-dev libgtest-dev libicu-dev

Actual installation

Do not remove the “znc” directory!

git clone https://github.com/znc/znc.git
cd znc
./autogen.sh
mkdir -p build
cd build
../configure --enable-debug --enable-perl --enable-python --enable-swig --enable-tcl --enable-cyrus --prefix=$HOME/.local
make -j$(nproc)
make install

Adding ZNC to $PATH

  • Check if ZNC is in your $PATH: which znc
    • It should result something like /home/znc/.local/bin/znc
      • If it says znc not found or gives wrong path, continue with thse instructions.
echo 'PATH=$HOME/.local/bin:$PATH' >> ~/.$(echo $SHELL|cut -d/ -f3)rc
source ~/.$(echo $SHELL|cut -d/ -f3)rc

which znc should now give correct place.

Ending

  • Configure your settings with znc --makeconf
  • Start znc with znc
  • Connect to your ZNC using your IRC client.

Upgrading

cd znc
git pull
mkdir -p build
cd build
../configure --enable-debug --enable-perl --enable-python --enable-swig --enable-tcl --enable-cyrus --prefix=$HOME/.local
make -j($nproc)
make install

Error with make

  • If you are in build directory: cd ..
  • If you are in the directory where you git cloned the repository: cd znc

and continue

rm -rf build
mkdir -p build
cd build
../configure --enable-debug --enable-perl --enable-python --enable-swig --enable-tcl --enable-cyrus --prefix=$HOME/.local
make -j$(nproc)
make install

If it doesnt work, try asking at #znc.


</html>