https://wiki.znc.in/api.php?action=feedcontributions&user=Remhaze&feedformat=atomZNC - User contributions [en]2024-03-29T00:36:45ZUser contributionsMediaWiki 1.42.0-alphahttps://wiki.znc.in/index.php?title=Installation/fr&diff=2793Installation/fr2021-03-30T09:26:13Z<p>Remhaze: /* Installtion depuis PPA */</p>
<hr />
<div>{{Languages|Installation}}<br />
Il existe plusieures façon d'installer ZNC sur votre machine. Les dernières versions sont toujours disponibles en récupérant les sources depuis Sourceforge. Certaines distributions incluent ZNC dans leur systèmes de paquets, cependant il arrive fréquemment que ce ne soit pas la dernière version.<br />
<br />
<br />
Un [[ChangeLog]] est disponible dans le wiki.<br />
Vous pouvez également en savoir plus sur la [[Portability|disponibilité de ZNC]] sur votre OS.<br />
<br />
== Versions en Dévelopement ==<br />
Lisez la page sur le [[SVN]] si vous voulez récupérer la version actuellement en développement. Sachez qu'il y a des risques que ces versions soient bugguées et par conséquent ne soient pas stables. C'est au péril de votre vie que vous installerez ces versions!<br />
<br />
== Sources Tarball ==<br />
Les tarballs officiels des sources se trouvent sur [http://sourceforge.net/projects/znc/files/ la page de téléchargement Sourceforge].<br />
<br />
Si vous désirez compiler ZNC avec le support d'openssl, vous devez posséder le paquet de dévelopement openssl. Sous Debian, ce paquet se nomme '''libssl-dev''', sur Fedora c'est '''openssl-devel'''.<br />
<br />
<br />
# Téléchargez le dernier [http://sourceforge.net/projects/znc/files/ tarball des sources]<br />
# <code>tar -xzvf znc*.*gz</code><br />
# <code>cd znc*</code><br />
# <code>./configure</code><br />(utilisez <code>--prefix=/path/to/shell/znc</code> si vous ne voulez pas une instalation intégré au système ou simplement si vous n'êtes pas root;<br /> utilisez <code>--with-openssl=/path/to/openssl</code> si vous n'avez pas une installation standard d'openssl)<br />
# <code>make</code><br />
# <code>make install</code><br />
<br />
''L'installation peut durer entre 5 et 10 minutes voir plus.''<br />
<br />
Consultez la [[FAQ|FAQ]] si vous rencontrez des problèmes.<br />
<br />
== Debian ==<br />
Debian fournit un [http://packages.debian.org/znc paquet ZNC] qui peut être installé par le biais de la commande suivante:<br />
apt-get install znc<br />
<br />
Pour installer à partir des sources, voir ci-dessous.<br />
<br />
== Ubuntu ==<br />
[http://packages.ubuntu.com/search?keywords=znc&searchon=names&exact=1&suite=all&section=all Les paquets ZNC D'Ubuntu] (Souvent dépassés)<br />
<br />
<br />
=== Installtion depuis PPA ===<br />
<br />
<br />
{{ambox | type = delete | text = '''Utilisateurs de Debian:''' '''''ne pas''''' utiliser ce PPA sous risque de casser votre installation, privilégier l'installation à partir de sources}}<br />
<br />
<br />
Un PPA a été créé par [https://launchpad.net/~teward Thomas W.], la dernière version de ZNC stable y est disponible. Ce PPA contient les paquets pour toutes les dernières versions de Ubuntu encore supportées. Il ne contient pas de paquets pour les versions d'Ubuntu qui ne sont plus [https://wiki.ubuntu.com/Releases supportées officellement]. [https://launchpad.net/~teward/+archive/znc/+packages Cliquez ici si vous voulez voir les paquets contenus dans le PPA].<br />
<br />
Les versions de ZNC actuellement disponibles dans le PPA sont détaillées [https://launchpad.net/~teward/+archive/ubuntu/znc sur la page du dépot] mais ne recevront des mises à jour que pour les versions encore supportées d'Ubuntu.<br />
<br />
Premièrement, vérifiez-installez le paquet python-software-properties :<br />
sudo apt-get install python-software-properties software-properties-common<br />
<br />
Ensuite, ajoutez le PPA à vos sources, et mettez à jours les informations d'APT :<br />
sudo add-apt-repository ppa:teward/znc<br />
sudo apt-get update<br />
<br />
Puis, installer les paquets ZNC :<br />
sudo apt-get install znc znc-dev znc-perl znc-python znc-tcl<br />
<br />
ZNC est maintenant installé. Vous pouvez créer une configuration avec l'user qui lancera ZNC en utilisant la commande :<br />
znc --makeconf<br />
<br />
=== Compiler soi même ===<br />
<br />
Si vous voulez compiler znc depuis les sources pour avoir une version plus récente (ou utiliser un nightly) que ce que propose Ubuntu, vous aurez besoin d'installer les paquets suivants:<br />
<br />
build-essential<br />
libssl-dev<br />
libperl-dev<br />
pkg-config<br />
libc-ares-dev<br />
<br />
== (Open)SuSE ==<br />
ZNC fait partit des [http://software.opensuse.org/search?q=znc dépots officiels]. Pour l'installation, utiliser YaST GUI ou installez via la commande:<br />
yast -i znc<br />
<br />
== Gentoo ==<br />
Gentoo fournit les [http://packages.gentoo.org/package/net-irc/znc paquets ZNC] qui peuvent être installés par la commande:<br />
emerge -av net-irc/znc<br />
<br />
== FreeBSD ==<br />
ZNC est dans les portages FreeBSD, faites simplement:<br />
cd /usr/ports/irc/znc<br />
make config<br />
make install clean<br />
<br />
oru<br />
<br />
pkg_add -r znc<br />
<br />
== OS X ==<br />
Consultez [http://henrik.nyh.se/2009/02/using-the-znc-irc-bouncer-with-os-x-and-iphone ce billet de blog].<br />
<br />
== Non officiels, binaires utilisateurs ==<br />
Les installations suivantes sont créées et maintenues par des utilisateurs!<br />
<br />
=== RPM ===<br />
Veit Wahlich a créé des paquets RPM et un dépot yum pour les distributions basées sur RedHat (RHEL/CentOS et Fedora). La version 0.052 est disponible sur http://home.ircnet.de/cru/znc<br />
<br />
=== Slackware ===<br />
[http://slackbuilds.org/result/?search=znc&sv= Dernière version SBo Slackbuild]<br />
<br />
=== Microsoft Windows ===<br />
[http://irsoft.de/web/ZNC-for-Windows ZNC comme un programme Windows natif, compilé avec Microsoft Visual C++]<br />
Cette version inclue le programme principal, une quarantaine de module, le support SSL et le support IPv6.<br />
<br />
[[de:Installation]]<br />
[[Category:ZNC/fr]]</div>Remhazehttps://wiki.znc.in/index.php?title=Installation/fr&diff=2792Installation/fr2021-03-30T09:25:19Z<p>Remhaze: added frecnh version of installing via PPA</p>
<hr />
<div>{{Languages|Installation}}<br />
Il existe plusieures façon d'installer ZNC sur votre machine. Les dernières versions sont toujours disponibles en récupérant les sources depuis Sourceforge. Certaines distributions incluent ZNC dans leur systèmes de paquets, cependant il arrive fréquemment que ce ne soit pas la dernière version.<br />
<br />
<br />
Un [[ChangeLog]] est disponible dans le wiki.<br />
Vous pouvez également en savoir plus sur la [[Portability|disponibilité de ZNC]] sur votre OS.<br />
<br />
== Versions en Dévelopement ==<br />
Lisez la page sur le [[SVN]] si vous voulez récupérer la version actuellement en développement. Sachez qu'il y a des risques que ces versions soient bugguées et par conséquent ne soient pas stables. C'est au péril de votre vie que vous installerez ces versions!<br />
<br />
== Sources Tarball ==<br />
Les tarballs officiels des sources se trouvent sur [http://sourceforge.net/projects/znc/files/ la page de téléchargement Sourceforge].<br />
<br />
Si vous désirez compiler ZNC avec le support d'openssl, vous devez posséder le paquet de dévelopement openssl. Sous Debian, ce paquet se nomme '''libssl-dev''', sur Fedora c'est '''openssl-devel'''.<br />
<br />
<br />
# Téléchargez le dernier [http://sourceforge.net/projects/znc/files/ tarball des sources]<br />
# <code>tar -xzvf znc*.*gz</code><br />
# <code>cd znc*</code><br />
# <code>./configure</code><br />(utilisez <code>--prefix=/path/to/shell/znc</code> si vous ne voulez pas une instalation intégré au système ou simplement si vous n'êtes pas root;<br /> utilisez <code>--with-openssl=/path/to/openssl</code> si vous n'avez pas une installation standard d'openssl)<br />
# <code>make</code><br />
# <code>make install</code><br />
<br />
''L'installation peut durer entre 5 et 10 minutes voir plus.''<br />
<br />
Consultez la [[FAQ|FAQ]] si vous rencontrez des problèmes.<br />
<br />
== Debian ==<br />
Debian fournit un [http://packages.debian.org/znc paquet ZNC] qui peut être installé par le biais de la commande suivante:<br />
apt-get install znc<br />
<br />
Pour installer à partir des sources, voir ci-dessous.<br />
<br />
== Ubuntu ==<br />
[http://packages.ubuntu.com/search?keywords=znc&searchon=names&exact=1&suite=all&section=all Les paquets ZNC D'Ubuntu] (Souvent dépassés)<br />
<br />
<br />
=== Installtion depuis PPA ===<br />
<br />
<br />
{{ambox | type = delete | text = '''Utilisateurs de Debian:''' '''''ne pas''''' utiliser ce PPA sous risque de casser votre installation, privilégier l'installation à patir de sources}}<br />
<br />
Un PPA a été créé par [https://launchpad.net/~teward Thomas W.], la dernière version de ZNC stable. Ce PPA contient les paquets pour toutes les dernières versions de Ubuntu encore supportées. Il ne contient pas de paquets pour les versions d'Ubuntu qui ne sont plus [https://wiki.ubuntu.com/Releases supportées officellement]. [https://launchpad.net/~teward/+archive/znc/+packages Cliquez ici si vous voulez voir les paquets contenus dans le PPA].<br />
<br />
Les versions de ZNC actuellement disponibles dans le PPA sont détaillées [https://launchpad.net/~teward/+archive/ubuntu/znc sur la page du dépot] mais ne recevront des mises à jour que pour les versions encore supportées d'Ubuntu.<br />
<br />
Premièrement, vérifiez-installez le paquet python-software-properties :<br />
sudo apt-get install python-software-properties software-properties-common<br />
<br />
Ensuite, ajoutez le PPA à vos sources, et mettez à jours les informations d'APT :<br />
sudo add-apt-repository ppa:teward/znc<br />
sudo apt-get update<br />
<br />
Puis, installer les paquets ZNC :<br />
sudo apt-get install znc znc-dev znc-perl znc-python znc-tcl<br />
<br />
ZNC est maintenant installé. Vous pouvez créer une configuration avec l'user qui lancera ZNC en utilisant la commande :<br />
znc --makeconf<br />
<br />
<br />
=== Compiler soi même ===<br />
<br />
Si vous voulez compiler znc depuis les sources pour avoir une version plus récente (ou utiliser un nightly) que ce que propose Ubuntu, vous aurez besoin d'installer les paquets suivants:<br />
<br />
build-essential<br />
libssl-dev<br />
libperl-dev<br />
pkg-config<br />
libc-ares-dev<br />
<br />
== (Open)SuSE ==<br />
ZNC fait partit des [http://software.opensuse.org/search?q=znc dépots officiels]. Pour l'installation, utiliser YaST GUI ou installez via la commande:<br />
yast -i znc<br />
<br />
== Gentoo ==<br />
Gentoo fournit les [http://packages.gentoo.org/package/net-irc/znc paquets ZNC] qui peuvent être installés par la commande:<br />
emerge -av net-irc/znc<br />
<br />
== FreeBSD ==<br />
ZNC est dans les portages FreeBSD, faites simplement:<br />
cd /usr/ports/irc/znc<br />
make config<br />
make install clean<br />
<br />
oru<br />
<br />
pkg_add -r znc<br />
<br />
== OS X ==<br />
Consultez [http://henrik.nyh.se/2009/02/using-the-znc-irc-bouncer-with-os-x-and-iphone ce billet de blog].<br />
<br />
== Non officiels, binaires utilisateurs ==<br />
Les installations suivantes sont créées et maintenues par des utilisateurs!<br />
<br />
=== RPM ===<br />
Veit Wahlich a créé des paquets RPM et un dépot yum pour les distributions basées sur RedHat (RHEL/CentOS et Fedora). La version 0.052 est disponible sur http://home.ircnet.de/cru/znc<br />
<br />
=== Slackware ===<br />
[http://slackbuilds.org/result/?search=znc&sv= Dernière version SBo Slackbuild]<br />
<br />
=== Microsoft Windows ===<br />
[http://irsoft.de/web/ZNC-for-Windows ZNC comme un programme Windows natif, compilé avec Microsoft Visual C++]<br />
Cette version inclue le programme principal, une quarantaine de module, le support SSL et le support IPv6.<br />
<br />
[[de:Installation]]<br />
[[Category:ZNC/fr]]</div>Remhazehttps://wiki.znc.in/index.php?title=Installation&diff=2791Installation2021-03-29T08:54:10Z<p>Remhaze: /* Install via PPA */</p>
<hr />
<div>{{Languages|Installation}}<br />
There are several possibilities to install ZNC on your machine. The latest version is always available using the source tarball from https://znc.in/releases.<br />
<br />
A [[:Category:ChangeLog|ChangeLog]] is available in the wiki.<br />
You can also read more about [[Portability|ZNC's portability]].<br />
<br />
;Which way should I choose for installing ZNC?<br />
:If you don't have root access, the only way is to use [[#Source Tarball|source tarball]]. You'll need to use <code>./configure --prefix="$HOME/.local"</code> as described. <br />
:If you have root access, you can use either [[#Source Tarball|source tarball]] or the convenient way for your distro. Check section about your distro for details, but be aware that these may contain old versions of ZNC!<br />
<br />
Once you have installed ZNC, you can create a config file with <code>znc --makeconf</code>.<br />
<br />
== Development Versions ==<br />
Read the [[git]] page if you want to get the current development version. Beware that this might have more bugs, more features, be a little unstable and eat your first born. You have been warned!<br />
<br />
== Source Tarball ==<br />
Official source tarballs can be found [https://znc.in/releases/ here].<br />
<br />
If you want to compile ZNC with OpenSSL support, you need the OpenSSL development package. On Debian/Ubuntu this is called '''libssl-dev''', on CentOS/Fedora/Red Hat it's '''openssl-devel''', and on openSUSE it's '''libopenssl-devel'''.<br />
A good way to install this and other dependencies is the build dependency feature of package managers (<code>apt-get build-dep</code> / <code>yum-builddep</code> / <code>zypper source-install --build-deps-only</code>).<br />
<br />
# Download the latest [https://znc.in/releases/znc-{{ZNC-Version}}.tar.gz source tarball]<br />
# <code>tar -xzvf znc-{{ZNC-Version}}.tar.gz</code><br />
# <code>cd znc-{{ZNC-Version}}</code><br />
# <code>mkdir build</code><br />
# <code>cd build</code><br />
# <code>cmake ..</code><br />(use <code>cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/.local"</code> if you don't want a system wide installation or simply don't have root access; use <code>cmake -DOPENSSL_ROOT_DIR=/path/to/openssl</code> if you have a non-standard SSL path)<br />(use <code>ccmake</code> or <code>cmake-gui</code> to see other configure options)<br />
# <code>make</code><br />(if you are on a dedicated server and your CPU has more than one core, you can use <code>make -jX</code> where X is the number of CPU cores to speed up compilation)<br />
# <code>make install</code><br />
<br />
''Please note that compiling can take 5-10 minutes or more.''<br />
<br />
Once you have installed znc, you can use <code>znc --makeconf</code> to make a configuration file for ZNC. This config is stored in ~/.znc under the user you run it as. You should create a dedicated non root user to run znc under. <br />
<br />
ZNC is run by just executing <code>znc</code> under the dedicated znc user, at which stage it goes to background. It does not automatically make an init.d service for itself (which can be done by following the instructions to [[running ZNC as a system daemon]]) nor does it need to be run in screen or something similar.<br />
<br />
;See the [[FAQ|FAQ page]] if you encounter problems.<br />
<br />
== Linux ==<br />
<br />
=== Docker ===<br />
ZNC is available as an image in [https://hub.docker.com/_/znc/ Docker Hub], and can be downloaded with:<br />
<br />
<code>docker pull znc</code><br />
<br />
Follow the link above for additional instructions.<br />
<br />
If you want to test great new features (and bugs!), unstable ZNC image is [https://hub.docker.com/r/zncbouncer/znc-git/ here].<br />
<br />
=== Debian ===<br />
{{ambox | type = delete | text = Prior to Debian Sid (Unstable) including Wheezy the ZNC packages included in the repositories for those older releases are '''extremely old'''. There could be '''security issues and even bugs in the code'''. If you are having issues with ZNC from your Debian package manager (prior to Sid), it is recommended to uninstall that package and build from source, or use the third-party repository (noted below).}}<br />
<br />
Debian provides [http://packages.debian.org/znc ZNC packages] which may be installed using (stretch/stable, buster/testing, sid)<br />
apt install znc<br />
<br />
Debian Jessie LTS [https://wiki.debian.org/Backports#Using_the_command_line backports]<br />
apt -t jessie-backports install znc<br />
<br />
If you want to build znc from source to get a newer version than Debian provides, you may need the following packages:<br />
build-essential<br />
libssl-dev<br />
libperl-dev<br />
pkg-config<br />
libicu-dev<br />
<br />
You can use the command<br />
aptitude build-dep znc<br />
to install build dependencies automatically. Note that sometimes these build-depedencies are outdated and won't work with the current version of ZNC.<br />
<br />
=== Fedora/CentOS/Red Hat Enterprise Linux ===<br />
Fedora has znc packaged in it's main repository and their Extra Packages for Enterprise Linux (EPEL) repository provides them for CentOS/RHEL.<br />
<br />
If using RHEL install the EPEL repository by downloading the appropriate package linked on [https://fedoraproject.org/wiki/EPEL#How_can_I_use_these_extra_packages.3F EPEL's website].<br />
<br />
Once you have EPEL installed (or are on Fedora), execute:<br />
sudo yum install znc<br />
or dnf<br />
sudo dnf install znc<br />
<br />
Once installed you can configure znc by running:<br />
sudo -u znc znc --makeconf # this creates ''/var/lib/znc/.znc''<br />
<br />
Then finally to start it you can run:<br />
sudo systemctl start znc # or ''enable'' if you want it to autostart<br />
<br />
==== Build from Source: CentOS 7+ only ====<br />
<br />
If you really wish to build from source, then please follow the instructions [https://wiki.znc.in/User:Teward/ZNC_From_Source:_CentOS_7 here, written by Thomas Ward]. Note that these instructions do utilize the EPEL repository in order to get all the necessary build dependencies (and there's a lot of them). These instructions work properly to create a basic ZNC installation. CentOS 7 or newer is needed because of the C++ standards being used, and older CentOS not having the required compilers for those standards.<br />
<br />
=== Ubuntu ===<br />
[http://packages.ubuntu.com/search?keywords=znc&searchon=names&exact=1&suite=all&section=all This page lists all of the ZNC packages in the Ubuntu repositories.]<br />
<br />
You can either build ZNC from source, or use a PPA that was made by a community member to contain pre-built ZNC packages for all supported Ubuntu releases. '''Note that the PPA does not contain packages for every Ubuntu release''', and the support dates for various Ubuntu versions is detailed [[User:Resistance/Ubuntu_PPA_for_ZNC_-_Supported_Versons_of_Ubuntu|here]]. If the release of Ubuntu you are on is not supported on the PPA, you will have to compile it from source yourself.<br />
<br />
==== Build From Source ====<br />
If you want to build znc from source to get a newer version than Ubuntu provides, you may need to determine capability of your system to build ZNC 1.6.0 (and newer) based on the version of Ubuntu.<br />
<br />
===== Building from Git Master =====<br />
{{ambox | type = notice | text = If you are building from a source tarball for a stable release, '''skip this section'''''. It is only needed for those building the development release (the master branch) on [[Git]].}}<br />
<br />
If you are trying to use the Git master version of the source code, then you will also need to ensure the following packages are also installed. You will '''not''' need to install these if you are using a stable release tarball, only if you are using Git master:<br />
aclocal<br />
pkg-config<br />
automake<br />
autoconf<br />
<br />
After you have installed these packages, then continue onward for the additional dependencies you will need.<br />
<br />
After installing dependencies, you will have to run autogen.sh to generate the configure script.<br />
<br />
===== Add Build Dependency Sources =====<br />
<br />
{{ambox | type = delete | text = '''DO NOT''' add these dependency sources or PPAs if you are only trying to install from the ZNC PPA; instead skip this section and go to the [[Installation#Install_via_PPA|Install via PPA]] second instead. This section is only for those intending to compile themselves from-source.}}<br />
<br />
====== Ubuntu 14.04 ======<br />
If you are on Ubuntu 14.04, you will need to add one PPA to your system, with the following command:<br />
sudo add-apt-repository -y ppa:teward/swig3.0<br />
<br />
====== Newer than Ubuntu 14.04 ======<br />
You will not need any additional PPAs or sources for build dependencies.<br />
<br />
===== Other Build Dependencies =====<br />
After verifying you have the required build dependency sources, you will need to install the following packages:<br />
build-essential<br />
libssl-dev<br />
libperl-dev<br />
pkg-config<br />
swig3.0<br />
libicu-dev<br />
<br />
After you have done this, you can follow the instructions on this page for compiling from the source tarball.<br />
<br />
==== Install via PPA ====<br />
<br />
{{ambox | type = delete | text = '''Debian users:''' '''''do not''''' use this PPA or you will risk forfeiting all support from Debian or breaking your system! Use the Debian repository described on the [[Installation#Debian|Debian section]] instead.}}<br />
<br />
{{ambox | type = delete | text = '''NOTICE:''' The PPA here has recently had its signing keys updated (as of approx. Jan 9, 2019); you may need to go through the process of downloading missing keys if <code>apt</code> starts to complain about <code>NO_PUBKEY</code> errors with the PPA.}}<br />
<br />
A Personal Package Archive (PPA) has been created by [https://launchpad.net/~teward Thomas W.], and contains the latest stable ZNC release as exists in Debian. It contains packages for all releases of Ubuntu that are currently supported. It does not contain packages for versions of Ubuntu that are past their [https://wiki.ubuntu.com/Releases end of life dates]. [https://launchpad.net/~teward/+archive/znc/+packages Click here if you wish to see the details of the packages in the PPA].<br />
<br />
The versions of ZNC currently available in the PPA are detailed [https://launchpad.net/~teward/+archive/ubuntu/znc on the repository's information page] but will only receive updates for currently-supported, non End of Life Ubuntu Releases.<br />
<br />
First, make sure you have the python-software-properties package installed:<br />
sudo apt-get install python-software-properties software-properties-common<br />
<br />
Then, add the PPA to your sources, and update the apt information:<br />
sudo add-apt-repository ppa:teward/znc<br />
sudo apt-get update<br />
<br />
Then, install the znc packages:<br />
sudo apt-get install znc znc-dev znc-perl znc-python znc-tcl<br />
<br />
ZNC is now installed. You can create the configuration normally with this, when run on the user that you want to run ZNC as:<br />
znc --makeconf<br />
<br />
=== (open)SUSE ===<br />
ZNC is part of the [https://software.opensuse.org/package/znc official repositories]. To install, use the YaST GUI or install via commandline by typing<br />
zypper install znc<br />
<br />
=== Gentoo ===<br />
Gentoo provides [http://packages.gentoo.org/package/net-irc/znc ZNC packages] which may be installed using:<br />
emerge -av net-irc/znc<br />
<br />
Several USE Flags can be used for znc:<br />
<br />
* daemon (local): (not offically supported) Allow znc to run as a system-wide service. Installs an init script and creates a znc user:group.<br />
* debug (global): enable debug<br />
* ipv6 (global): adds support for ipv6<br />
* perl (global): adds support for writing perl modules<br />
* python (global): adds support for writing python 3 modules <br />
* ssl (global): enable secure socket layer connections<br />
* sasl (global): sasl support<br />
* tcl (global): adds support for writing tcl modules<br />
<br />
<pre>equery uses znc -a</pre> Will print you a list of USE flags that will be used for znc<br />
<br />
=== Slackware ===<br />
[http://slackbuilds.org/result/?search=znc&sv= Latest Slackware SBo Slackbuild]<br />
<br />
=== Alpine Linux ===<br />
<br />
To install znc from the package manager, enter the following command:<br />
<!--- Some modules exist in znc-extra. This is by design on this OS. ---><br />
sudo apk add znc znc-extra znc-modperl znc-modpython znc-modtcl ca-certificates<br />
<br />
If you want to build znc from source to get a newer version than Alpine provides, you need to install packages with the following command:<br />
sudo apk add autoconf automake gettext-dev g++ make openssl-dev pkgconfig zlib-dev <br />
<br />
If you want to run [[git]], [[Debugging]], [[modperl|perl]], (requires swig), [[modpython|python]], (requires swig), [[modtcl|tcl]], or [[cyrusauth|cyrus]] then install the packages that correspond:<br />
sudo apk add git gdb perl-dev python3-dev swig tcl-dev cyrus-sasl-dev<br />
<br />
=== Archlinux ===<br />
<br />
ZNC is part of the [http://www.archlinux.org/packages/?q=znc archlinux package repository], and can be installed with the following:<br />
<br />
pacman -S znc<br />
<br />
Additionally you can install the following optional dependencies to add support for additional modules.<br />
<br />
* '''cyrus-sasl''' - saslauth module<br />
* '''perl''' - modperl module<br />
* '''python''' - modpython module<br />
* '''tcl''' - modtcl module<br />
<br />
==== Unstable/Testing ====<br />
You can install the latest git snapshot from the [https://aur.archlinux.org/packages/znc-git/ Arch User Repository].<br />
<br />
== FreeBSD ==<br />
ZNC is in FreeBSD ports, just do:<br />
cd /usr/ports/irc/znc<br />
make config<br />
make install clean<br />
<br />
or pkg_add<br />
<br />
pkg_add -r znc<br />
<br />
or pkgng<br />
<br />
pkg install znc<br />
<br />
== Mac OS X ==<br />
<br />
There are two ways to install ZNC on OS X, either using a package manager such as Homebrew or installing it yourself from source. See [http://henrik.nyh.se/2009/02/using-the-znc-irc-bouncer-with-os-x-and-iphone this blog post] for a tutorial on how to compile ZNC from source.<br />
<br />
* NOTE: If you are running on PPC architecture and cannot make the ''./configure && make && sudo make install'' dance work, you'll want to do the following:<br />
# Make sure that you're using the --disable-perl switch for ''configure''. Hence: ''./configure --prefix=/usr/local --disable-perl''<br />
<br />
=== Homebrew ===<br />
<br />
==== Installing Homebrew ====<br />
<br />
For more information about Homebrew see [http://mxcl.github.com/homebrew/ here]. The following command will install Homebrew to /usr/local<br />
<br />
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"<br />
<br />
Homebrew requires Xcode and Mac OS X >= 10.5<br />
<br />
==== Installing znc with Homebrew ====<br />
<br />
brew install znc<br />
<br />
=== Installing znc with MacPorts ===<br />
<br />
port install znc<br />
<br />
<br />
== Microsoft Windows ==<br />
<br />
'''Warning: If you're going to install ZNC on your local Windows machine, it will probably be useless. You should run it on some machine (Windows or not), which is connected to internet 24/7.'''<br />
<br />
=== Cygwin ===<br />
<br />
ZNC is available in list of cygwin packages.<br />
<br />
Download [http://www.cygwin.com/ Cygwin], install it. When choosing list of packages to install, search for "znc".<br />
<br />
If you don't want to use the provided packages, you can compile ZNC from source; for that you'll need the following packages installed: automake, gcc-g++, libicu-devel, make, mpfr, pkg-config, openssl-devel, zlib-devel. After installing these packages proceed to [[#Source Tarball|source tarball]] section (or [[git]])<br />
<br />
=== WSL ===<br />
After ensuring that WSL (Windows Subsystem for Linux) itself works, follow the [[#Linux|Linux]] instructions above.<br />
<br />
[[Category:ZNC]]</div>Remhaze