设为首页 加入收藏

TOP

mydumper 安装报错处理(一)
2015-11-13 01:24:20 来源: 作者: 【 】 浏览:43
Tags:mydumper 安装 处理

mydumper 官网:https://answers.launchpad.net/mydumper/


下载之后,安装报错:


[root@localhost local]# cd mydumper-0.6.2
[root@localhost mydumper-0.6.2]#
[root@localhost mydumper-0.6.2]# ls
binlog.c? CMakeCache.txt? common.h? ? docs? ? ? ? ? ? g_unix_signal.h? myloader.c? Processing? server_detect.c
binlog.h? CMakeFiles? ? ? config.h? ? Finished? ? ? ? mydumper.c? ? ? myloader.h? README? ? ? server_detect.h
cmake? ? CMakeLists.txt? config.h.in? g_unix_signal.c? mydumper.h? ? ? Package? ? Running
[root@localhost mydumper-0.6.2]# cmake .
-- The CXX compiler identification is GNU 4.4.7
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using mysql-config: /usr/local/mysql/bin/mysql_config
-- Found MySQL: /usr/local/mysql/include, /usr/local/mysql/lib/libmysqlclient.so;/usr/lib/libpthread.so;/usr/lib/libm.so;/usr/lib/librt.so;/usr/lib/libdl.so
-- checking for one of the modules 'glib-2.0'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:363 (message):
? None of the required 'glib-2.0' found
Call Stack (most recent call first):
? cmake/modules/FindGLIB2.cmake:10 (pkg_search_module)
? CMakeLists.txt:10 (find_package)



-- checking for one of the modules 'gthread-2.0'
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:363 (message):
? None of the required 'gthread-2.0' found
Call Stack (most recent call first):
? cmake/modules/FindGLIB2.cmake:11 (pkg_search_module)
? CMakeLists.txt:10 (find_package)


?


CMake Warning at docs/CMakeLists.txt:9 (message):
? Unable to find Sphinx documentation generator



-- ------------------------------------------------
-- MYSQL_CONFIG = /usr/local/mysql/bin/mysql_config
-- CMAKE_INSTALL_PREFIX = /usr/local
-- BUILD_DOCS = ON
-- WITH_BINLOG = OFF
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D=
-- ------------------------------------------------
--
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:
GLIB2_LIBRARIES (ADVANCED)
? ? linked by target "mydumper" in directory /usr/local/mydumper-0.6.2
? ? linked by target "myloader" in directory /usr/local/mydumper-0.6.2
GTHREAD2_LIBRARIES (ADVANCED)
? ? linked by target "mydumper" in directory /usr/local/mydumper-0.6.2
? ? linked by target "myloader" in directory /usr/local/mydumper-0.6.2


-- Configuring incomplete, errors occurred!
See also "/usr/local/mydumper-0.6.2/CMakeFiles/CMakeOutput.log".
See also "/usr/local/mydumper-0.6.2/CMakeFiles/CMakeError.log".


cmake .? 报错:
None of the required 'glib-2.0' found
None of the required 'gthread-2.0' found


网上搜索,没有找到解决办法,于是只好去官网寻找方法:


https://answers.launchpad.net/mydumper/+faq/349


Run:
?cmake .
?make


One needs to install development versions of required libaries (MySQL, GLib, ZLib, PCRE):
NOTE: you must use the correspondent mysql devel package.


One has to make sure, that pkg-config, mysql_config, pcre-config are all in $PATH


Binlog dump is disabled by default to compile with it you need to add -DWITH_BINLOG=ON to cmake options


Obviously you need compiler and make packages too :)


可以看到需要安装依赖:


Fedora, RedHat and CentOS: yum install glib2-devel mysql-devel zlib-devel pcre-devel openssl-devel


于是按照说明进行安装:


[root@localhost mydumper-0.6.2]# yum install glib2-devel mysql-deve

首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇MySQL binlog 组提交与 XA(两阶段.. 下一篇通过innobackupex实现对MySQL的单..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: