这篇文章主要介绍了mydumper编译错误怎么办,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
[root@service mydumper-0.9.1]# cmake ``-DMYSQL_CONFIG=/usr/local/percona3306/bin/mysql_config`` .
报下面的错误,然后 make 便于失败:
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:
MYSQL_LIBRARIES_perconaserverclient
linked by target "mydumper" in directory /root/mydumper-0.9.1
linked by target "myloader" in directory /root/mydumper-0.9.1
-- Configuring incomplete, errors occurred!
See also "/root/mydumper-0.9.1/CMakeFiles/CMakeOutput.log".
原因:
CMakeCache.txt 文件中 MYSQL_LIBRARIES:FILEPATH 参数配置错误:
//INTERNAL
MYSQL_LIBRARIES:FILEPATH=MYSQL_LIBRARIES_perconaserverclient-NOTFOUND;/usr/lib64/libpthread.so;/usr/lib64/libz.so;/usr/lib64/libm.so;/usr/lib64/librt.so;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libdl.so
处理:
percona mysql 部署在 /usr/local/percona3306 修改 MYSQL_LIBRARIES:FILEPATH 参数:
//INTERNAL
MYSQL_LIBRARIES:FILEPATH=/usr/local/percona3306/lib/libperconaserverclient.so.20;/usr/lib64/libpthread.so;/usr/lib64/libz.so;/usr/lib64/libm.so;/usr/lib64/librt.so;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libdl.so
感谢你能够认真阅读完这篇文章,希望小编分享的“mydumper编译错误怎么办”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!