您好,登錄后才能下訂單哦!
一、檢查依賴包
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"
注意:需要注意的是libev-devel包在系統安裝包中并沒有,需要網上下載。
我的下載地址為
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
二、解壓xtrabackup安裝包
tar -zxvf percona-xtrabackup-2.4.11.tar.gz
三、編譯、安裝
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
注意:xtrabackup源碼包沒有可用boost,如果在安裝mysql5.7.20時用的是帶有boost的源碼包,則可以借用mysql的boost路徑安裝
make && make install
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。