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

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

Note

In place of a full bzr branch (which can take hours), if the intention is just to build, a source ball or a lightweight checkout, might be better options.

Compiling on Linux

Prerequisites

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 libboost-dev

In RPM-based distributions, you need to:

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

Compiling

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

BUILD/compile-pentium64-wsrep

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

Note

Galera tree needs to be checked out in the source directory of percona-xtradb-cluster. Otherwise the build - build-binary.sh would fail.

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

Percona XtraDB Cluster
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Table Of Contents

Previous topic

Percona apt Repository

Next topic

High Availability

This Page



© Copyright 2012-2013, Percona LLC and/or its affiliates.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
Created using Sphinx 1.1.3.
This documentation is developed in Launchpad as part of the Percona XtraDB Cluster source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
]]>