mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-11-16 00:49:28 +01:00
2.8 KiB
Executable File
2.8 KiB
Executable File
<!DOCTYPE html>
<html>
<head>
</head>
</html>
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 don’t know what znc is, click here. If you are looking for the official installation instructions, click here.
I am going to presume that you don’t 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.
- If it says
- It should result something like
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 doesn’t work, try asking at .
</html>