Get the App
SLTechnology News&Howtos  ›  Database  › 

Xtrabackup series: source code installation

Shulou Source: shulou.com Published: 2022-06-01 09:00:40 11月28日 Update

First, check the dependency package

Rpm-q cmake gcc gcc-c++ libaio libaio-devel automake autoconf bison libtool ncurses-devel libgcrypt-devel libev-devel libcurl-devel vim-common libev-devel | grep "not installed"

Note: it should be noted that the libev-devel package is not included in the system installation package and needs to be downloaded online.

My download address is

Http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/l/libev-devel-4.03-3.el6.x86_64.rpm

Http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/l/libev-4.03-3.el6.x86_64.rpm

Rpm-ivh libgpg-error-devel-1.7-4.el6.x86_64.rpm

Rpm-ivh libgcrypt-devel-1.4.5-12.el6_8.x86_64.rpm

Rpm-ivh libidn-devel-1.18-2.el6.x86_64.rpm

Rpm-ivh libcurl-devel-7.19.7-52.el6.x86_64.rpm

Rpm-ivh libev-4.03-3.el6.x86_64.rpm

Rpm-ivh libev-devel-4.03-3.el6.x86_64.rpm

2. Extract the xtrabackup installation package

Tar-zxvf percona-xtrabackup-2.4.11.tar.gz

III. Compilation and installation

Cd percona-xtrabackup-2.4.11

Cmake-DBUILD_CONFIG=xtrabackup_release-DWITH_MAN_PAGES=OFF-DDOWNLOAD_BOOST=1-DWITH_BOOST=/root/mysql-5.7.20/boost

Note: there is no boost available in the xtrabackup source package. If you use a source package with boost when installing mysql5.7.20, you can borrow the boost path of mysql to install it.

Make & & make install

Tags: Source code address system path check compile Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Docker Microsoft vpn Shulou Technology