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-xtrabackup/2.2

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

Compiling on Linux

Prerequisites

The following packages and tools must be installed to compile Percona XtraBackup 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 \
   libgcrypt11-dev

In RPM-based distributions, you need to:

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

Compiling with CMake

At the base directory of the source code tree, if you execute:

$ cmake -DBUILD_CONFIG=xtrabackup_release && make -j4

and you go for a coffee, at your return Percona XtraBackup will be ready to be used.

Installation

The following command:

$ make install

will install all Percona XtraBackup binaries, the innobackupex script and tests to /usr/local/xtrabackup. You can override this either with:

make DESTDIR=... install

or by changing the installation layout with:

cmake -DINSTALL_LAYOUT=...
Percona XtraBackup
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 yum Repository

Next topic

Percona XtraBackup User Manual

This Page



© Copyright 2009-2014, 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.2.2.
This documentation is developed in Launchpad as part of the Percona XtraBackup 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.
]]>