问题:
-- 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)