1、安装官网给出的RPM包安装
2、编译并安装源码包
选择安装路径
3、编译安装时出现的报错
4、需要安装的RPM包
5、安装相关软件包
- yum install cmake gcc gcc-c++ libaio libaio-devel automake autoconf bzr bison libtool ncurses5-devel
- cmake -DBUILD_CONFIG=xtrabackup_release && make -j4 && make install
- 默认安装路径在 /usr/local/xtrabackup.
- 可以在make的时候指定安装路径:
- make DESTDIR=... install
- 或者在cmake的时候改变路径:
- cmake -DINSTALL_LAYOUT=...
- Linking C static library libarchive.a
- [ 20%] Built target archive_static
- make: *** [all] Error 2
- Linking C static library libmysys.a
- [ 29%] Built target mysys
- make: *** [all] Error 2
- /bin/sh: sphinx-build: command not found
- make[2]: *** [storage/innobase/xtrabackup/doc/source/build/man] Error 127
- make[1]: *** [storage/innobase/xtrabackup/doc/source/CMakeFiles/man.dir/all] Error 2
- make[1]: *** Waiting for unfinished jobs....
- [ 14%] Built target abi_check
- [ 20%] Built target archive_static
- [ 29%] Built target mysys
- make: *** [all] Error 2
- Extension error:
- Could not import extension sphinx.ext.extlinks (exception: No module named extlinks)
- 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
- yum install perl-DBI perl-DBD-MySQL perl-Time-HiRes perl-IO-Socket-SSL
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/12219480/viewspace-1761745/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/12219480/viewspace-1761745/