xtrabackup version 2.4.3 编译安装

问题:

-- Check size of long

-- Check size of long - done
-- Check size of int
-- Check size of int - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Performing Test HAVE_NO_UNUSED_TYPEDEFS
-- Performing Test HAVE_NO_UNUSED_TYPEDEFS - Success
-- Library mysqlserver depends on OSLIBS -lpthread;/usr/lib64/libz.so;m;rt;crypt;dl;aio
-- CMAKE_BUILD_TYPE: RelWithDebInfo
-- COMPILE_DEFINITIONS: _GNU_SOURCE;_FILE_OFFSET_BITS=64;HAVE_CONFIG_H
-- CMAKE_C_FLAGS:  -fPIC -Wall -Wextra -Wformat-security -Wvla -Wwrite-strings -Wdeclaration-after-statement
-- CMAKE_CXX_FLAGS:  -fPIC -Wall -Wextra -Wformat-security -Wvla -Woverloaded-virtual -Wno-unused-parameter
-- CMAKE_C_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -g -fabi-version=2 -fno-omit-frame-pointer -fno-strict-aliasing -DDBUG_OFF
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBEV_INCLUDE_DIRS (ADVANCED)
   used as include directory in directory /tools/percona-xtrabackup-2.4.3/storage/innobase/xtrabackup/src
-- Configuring incomplete, errors occurred!
[root@test percona-xtrabackup-2.4.3]# 


解决:
http://dist.schmorp.de/libev/
#tar xvzf libev-4.22.tar.gz 
# ./configure
# make 
# make install
# find / -name 'libev.so*'
 /usr/local/lib/libev.so.4
 /usr/local/lib/libev.so.4.0.0
 /usr/local/lib/libev.so
 
make clean
rm -f  CMakeCache.txt


cmake -DBUILD_CONFIG=xtrabackup_release -DWITH_MAN_PAGES=OFF -DWITH_BOOST=/usr/local/boost && make -j4


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/innobackupex  /usr/bin/
ln -sf   /usr/local/xtrabackup/bin/xtrabackup  /usr/bin/
---测试结果
# xtrabackup -version
xtrabackup version 2.4.3 based on MySQL server 5.7.11 Linux (x86_64) (revision id: 6a46905)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值