标签:yum exception cal lin ++ rac 依赖 文件 autoconf
----1.编译安装percona-xtrabackup yum -y install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison libtool ncurses-devel ncurses5-devel zlib-devel libgcrypt-devel crypt* libgcrypt* python-sphinx openssl imake libxml2-devel expat-devel ncurses5-devel ncurses-devle NOTE:2.2.14 须要python-sphinx openssl两个依赖包. ---2.安装相关插件 yum -y install perl-DBI yum -y install perl-DBD-MySQL yum -y install perl-Time-HiRes yum -y install perl-IO-Socket-SSL wget http://www.percona.com/downloads/percona-toolkit/2.2.14/RPM/percona-toolkit-2.2.13-1.noarch.rpm yum -y install mysql-libs #相应版本号的MySQL-shared-compat rpm -ivh MySQL-shared-compat-5.6.25-1.el6.x86_64.rpm yum -y install perl-TermReadKey rpm -ivh percona-toolkit-2.2.14-1.noarch.rpm ---3.安装xtrabackup wget http://www.percona.com/downloads/XtraBackup/XtraBackup-2.2.11/source/tarball/percona-xtrabackup-2.2.11.tar.gz cd /soft/ rm -rf /usr/local/xtrabackup mkdir -p /usr/local/xtrabackup tar xvzf percona-xtrabackup-2.2.11.tar.gz mv percona-xtrabackup-2.2.11 /usr/local/xtrabackup chown -R mysql:mysql /usr/local/xtrabackup cd /usr/local/xtrabackup/percona-xtrabackup-2.2.11 cmake -DBUILD_CONFIG=xtrabackup_release /**************编译安装相关參数 cmake . -LH --查看cmake支持的mysql相关參数 shell> cmake . -L # overview shell> cmake . -LH # overview with help text shell> cmake . -LAH # all params with help text shell> cmake . # interactive display ****************** make ********************make可能遇到的错误 又一次编译时。须要清除旧的对象文件和缓存信息 Could not import extension sphinx.ext.extlinks (exception: No module named extlinks) make clean rm -f CMakeCache.txt ****************** make install /*****又一次安装须要 rm -rf /usr/bin/innobackupex rm -rf /usr/bin/xtrabackup ***********/ #vi + ~/.bash_profile export PATH=/usr/local/xtrabackup/bin:$PATH #source ~/.bash_profile ----链接命令到/usr/bin文件夹 ln -sf /usr/local/xtrabackup/bin/* /usr/bin/
galera安装之编译安装xtrabackup 2.2.11
标签:yum exception cal lin ++ rac 依赖 文件 autoconf
原文地址:http://www.cnblogs.com/lxjshuju/p/6785888.html