~akopytov/percona-xtrabackup/bug1204463-2.1

290.3.1 by Rodrigo Gadea
Updated Building Instructions on Linux in BUILD.txt
1
================================
2
How to build XtraBackup on Linux
3
================================
4
5
Prerequisites
6
-------------
7
8
The following packages and tools must be installed to compile 
9
Percona XtraBackup from source. These might vary from system to system.
10
11
In Debian-based distributions, you need to:
12
13
  $ apt-get install build-essential flex bison automake autoconf bzr \
610.1.1 by Hrvoje Matijakovic
- bugs fixed: Bug #1190663 and Bug #1181317
14
    libtool cmake libaio-dev mysql-client libncurses-dev zlib1g-dev \
15
    libgcrypt11-dev
290.3.1 by Rodrigo Gadea
Updated Building Instructions on Linux in BUILD.txt
16
17
In RPM-based distributions, you need to:
18
19
  $ yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr \
20
    bison libtool ncurses5-devel
21
22
Compiling with build.sh
23
-----------------------
24
25
Once you have all dependencies met, the compilation is straight-forward with 
26
the bundled build.sh script in the utils/ directory of the distribution.
27
28
The script needs the codebase for which the building is targeted, you must
29
provide it with one of the following values or aliases:
30
31
  ================== =========  =============================================
32
  Value              Alias      Server
33
  ================== =========  =============================================
391.62.1 by Hrvoje Matijakovic
Bug fixes for bug: Bug #1073502, Bug #1075269 and Bug #1066978
34
  innodb51           plugin	build against InnoDB plugin in MySQL 5.1
290.3.1 by Rodrigo Gadea
Updated Building Instructions on Linux in BUILD.txt
35
  innodb55           5.5	build against InnoDB in MySQL 5.5
36
  xtradb51           xtradb     build against Percona Server with XtraDB 5.1
37
  xtradb55           xtradb55   build against Percona Server with XtraDB 5.5
391.103.2 by Laurynas Biveinis
Add MySQL 5.6 support.
38
  innodb56           5.6        build against InnoDB in MySQL 5.6
290.3.1 by Rodrigo Gadea
Updated Building Instructions on Linux in BUILD.txt
39
  ================== =========  =============================================
40
41
Note that the script must be executed from the base directory of Xtrabackup 
42
sources, and that directory must contain the packages with the source code of 
43
the codebase selected. This may appear cumbersome, but if the variable
290.3.2 by Rodrigo Gadea
Fixed a typo in AUTO_DOWNLOAD variable
44
AUTO_DOWNLOAD="yes" is set, the build.sh script will download all the source 
45
code needed for the build.
290.3.1 by Rodrigo Gadea
Updated Building Instructions on Linux in BUILD.txt
46
47
At the base directory of the downloaded source code, if you execute
48
49
  $ AUTO_DOWNLOAD="yes" ./utils/build.sh xtradb
50
391.28.1 by Hrvoje Matijakovic
* addressed Alexey's comments from Bug #977533
51
and you go for a coffee, at your return XtraBackup will be ready to be used.
52
The xtrabackup binary will located in the "percona-xtrabackup/src" subdirectory.
53
54
After this you'll need to copy innobackupex and the corresponding xtrabackup
55
binary to some directory listed in the PATH environment variable, e.g. /usr/bin.
56