|
1 |
| -<!--- are these instructions current? |
2 |
| - ---> |
3 |
| - |
4 | 1 | # Compile and install from source
|
5 | 2 |
|
6 | 3 | The following instructions install Percona XtraBackup {{vers}}.
|
@@ -94,28 +91,33 @@ directory:
|
94 | 91 | $ cd build
|
95 | 92 | ```
|
96 | 93 |
|
97 |
| -3. Run cmake or cmake3. In either case, the options you need to use are the |
| 94 | +3. If you use a regular build, run cmake or cmake3. In either case, the options you need to use are the |
98 | 95 | same.
|
99 | 96 |
|
100 | 97 | !!! note
|
101 | 98 |
|
102 | 99 | You can build *Percona XtraBackup* with man pages but this requires
|
103 | 100 | `python-sphinx` package which isn’t available from that main repositories
|
104 | 101 | for every distribution. If you installed the `python-sphinx` package you
|
105 |
| - need to remove the `-DWITH_MAN_PAGES=OFF` from previous command. |
| 102 | + need to remove the `-DWITH_MAN_PAGES=OFF` from the following command. |
| 103 | + |
| 104 | +```{.bash data-prompt="$"} |
| 105 | +$ cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF .. |
| 106 | +``` |
| 107 | + |
| 108 | +If you use [Pro builds](./pxb-pro.md), run the following command |
106 | 109 |
|
107 | 110 | ```{.bash data-prompt="$"}
|
108 |
| -$ cmake -DWITH_BOOST=PATH-TO-BOOST-LIBRARY -DDOWNLOAD_BOOST=ON \ |
109 |
| --DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF -B .. |
| 111 | +$ cmake -DPROBUILD=1 -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF .. |
110 | 112 | ```
|
111 | 113 |
|
112 | 114 | ### Parameter Information
|
113 | 115 |
|
114 |
| -| **Parameter** | **Description** | |
| 116 | +| Parameter | Description | |
115 | 117 | |---------------|-----------------|
|
116 |
| -| `-DWITH_BOOST` | For the `-DWITH_BOOST` parameter, specify the name of a directory to download the boost library to. This directory is created automatically in your current directory. | |
117 |
| -| `-DWITH_MAN_PAGES` | To build **Percona XtraBackup** man pages, use `ON` or remove this parameter from the command line (it is `ON` by default). To install the man pages, install the python3-sphinx package first. | |
118 |
| -| `-B` (--build)| **Percona XtraBackup** is configured to forbid generating the build pipeline for make in the same directory where you store your sources. The `-B` parameter refers to the directory that contains the source code. In this example, we use the relative path to the parent directory (..). | |
| 118 | +| `-DPROBUILD=1` | This option enables a Pro build. | |
| 119 | +| `-DBUILD_CONFIG` | This option builds a release/optimized version of the xtrabackup binary. | |
| 120 | +| `-DWITH_MAN_PAGES` | To build Percona XtraBackup man pages, use `ON` or remove this parameter from the command line (it is `ON` by default). To install the man pages, install the python3-sphinx package first. | |
119 | 121 |
|
120 | 122 | !!! important
|
121 | 123 |
|
|
0 commit comments