# Installation

This chapter explains how to install WeeChat.

## Binary packages

Binary packages are available for many distributions, including:

- Debian (or any Debian compatible distribution): `apt-get install weechat`

- Mandriva/RedHat (or any RPM compatible distribution): `rpm -i /path/to/weechat-x.y.z-1.i386.rpm`

- Gentoo : `emerge weechat`

Some additional packages may be useful, like weechat-plugins.

For other distributions, please look at your manual for installation instructions.

## Source package

WeeChat can be compiled with autotools or cmake.

### Compile with Autotools

In a console or a terminal:

    $ ./configure
    $ make

Then get root privileges and install WeeChat:

    $ su
    (enter root password)
    # make install

### Compile with Cmake

In a console or a terminal:

    $ mkdir build
    $ cd build
    $ cmake ..
    $ make

Then get root privileges and install WeeChat:

    $ su
    (enter root password)
    # make install

## GIT sources

Warning: GIT sources are for advanced users: it may not compile or not be stable. You're warned!

To get GIT sources, issue this command:

    $ git-clone git://git.sv.gnu.org/weechat.git

If you're using Autotools (and not cmake), execute this script: `./autogen.sh`

Then follow instructions for source package (see )