1. 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 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. Unzip the xtrabackup installation package
tar -zxvf percona-xtrabackup-2.4.11.tar.gz
3. Compile and install
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: The xtrabackup source package does not have boost available. If the source package with boost is used when installing mysql5.7.20, you can use the boost path of mysql to install
make && make install