Compiling and Installing from Source Code

The source code is available from the Launchpad project here. The easiest way to get the code is with bzr branch of the desired release, such as the following:

bzr branch lp:percona-xtradb-cluster/5.6

You should then have a directory named after the release you branched, such as percona-xtradb-cluster.

Compiling on Linux


The following packages and tools must be installed to compile Percona XtraDB Cluster from source. These might vary from system to system.

In Debian-based distributions, you need to:

$ apt-get install build-essential flex bison automake autoconf bzr \
  libtool cmake libaio-dev mysql-client libncurses-dev zlib1g-dev

In RPM-based distributions, you need to:

$ yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr \
  bison libtool ncurses5-devel


The most esiest way to build binaries is to run script:


If you feel confident to use cmake, you make compile with cmake adding -DWITH_WSREP=1 to parameters.

Examples how to build RPM and DEB packages you can find in packaging/percona directory in the source code.

Table Of Contents

Previous topic

Percona apt Repository

Next topic

Percona XtraDB Cluster In-Place Upgrading Guide: From 5.5 to 5.6