关闭

xtrabackup version 2.4.3 编译安装

1062人阅读 评论(0) 收藏 举报
分类:

问题:

-- 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

猜你在找
【直播】机器学习&数据挖掘7周实训--韦玮
【套餐】系统集成项目管理工程师顺利通关--徐朋
【直播】3小时掌握Docker最佳实战-徐西宁
【套餐】机器学习系列套餐(算法+实战)--唐宇迪
【直播】计算机视觉原理及实战--屈教授
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之矩阵--黄博士
【套餐】微信订阅号+服务号Java版 v2.0--翟东平
【直播】机器学习之凸优化--马博士
【套餐】Javascript 设计模式实战--曾亮
查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:514120次
    • 积分:7088
    • 等级:
    • 排名:第3168名
    • 原创:222篇
    • 转载:61篇
    • 译文:0篇
    • 评论:136条
    文章分类
    最新评论