cmake编译facebook/mysql时出错,链接到怪异路径

rjee0c15  于 2021-06-20  发布在  Mysql
关注(0)|答案(1)|浏览(428)

我试图让myrocks(facebook/mysql提交[a93e134]:https://github.com/facebook/mysql-5.6/commit/a93e134dbf399030887cafa5cd0f98921a226769)在centos6.3上,但我没有收到这些消息

-- Running cmake version 3.2.2

-- MySQL 5.6.35

-- Packaging as: mysql-5.6.35-Linux-x86_64

-- HAVE_VISIBILITY_HIDDEN

-- ZSTD_INCLUDE_DIR /home/chinyajie/local/usr/local/include

-- ZSTD_LIBRARY /home/chinyajie/local/usr/local/lib/libzstd.so

-- ZSTD_INCLUDE_DIR /home/chinyajie/local/usr/local/include

-- ZSTD_LIBRARY /home/chinyajie/local/usr/local/lib/libzstd.so

test:PATH_TO_ZSTDZSTD_SYSTEM_LIBRARY

-- OPENSSL_INCLUDE_DIR = /usr/include

-- OPENSSL_LIBRARY = /usr/lib64/libssl.so

-- CRYPTO_LIBRARY = /usr/lib64/libcrypto.so

-- OPENSSL_MAJOR_VERSION = 1

-- SSL_LIBRARIES = /usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl

-- Using cmake version 3.2.2

-- Not building NDB
-- Library fbmysqlclient depends on OSLIBS -lpthread;/home/chinyajie/local/usr/local/lib/libzstd.so;m;rt;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl

-- Googletest was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.

-- If you are inside a firewall, you may need to use an https proxy: export https_proxy=http://example.com:80

CMake Error in storage/rocksdb/CMakeLists.txt:

Cannot find source file:

../../rocksdb/usr/bin/make64
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error in storage/rocksdb/CMakeLists.txt:
Cannot find source file:

../../rocksdb/MAC=64
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error in storage/rocksdb/CMakeLists.txt:
Cannot find source file:

../../rocksdb/--makefile
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

CMake Error in storage/rocksdb/CMakeLists.txt:
Cannot find source file:

../../rocksdb/tmp/tmp.QgIOMFCBRt
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

-- Library mysqlserver depends on OSLIBS -lpthread;/home/chinyajie/local/usr/local/lib/libzstd.so;m;rt;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;dl;crypt;-lrt

-- CMAKE_BUILD_TYPE: RelWithDebInfo

-- COMPILE_DEFINITIONS: HAVE_CONFIG_H;ZSTD;HAVE_ZSTD_COMPRESS

-- CMAKE_C_FLAGS: -Wall -Wextra -Wformat-security -Wwrite-strings -std=c99

-- CMAKE_CXX_FLAGS: -Wall -Wextra -Wformat-security -Woverloaded-virtual -Wno-unused-parameter -std=c++11 -I /home/chinyajie/local/usr/local/include -I /home/chinyajie/local/usr/local/include

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

-- Configuring incomplete, errors occurred!

For

Cannot find source file:

../../rocksdb/MAC=64

这些路径很奇怪,我尝试使用message()打印文件storage/rocksdb/cmakelists.txt中的日志,但似乎在这些错误发生之前,所有命令都已完成。

nle07wnf

nle07wnf1#

问题是由制造引起的。在我的计算机中,当我运行/usr/bin/make时,它将打印/usr/bin/make64 mac=64。所有这些都由“command env-i${cmake\u source\u dir}/storage/rocksdb/get\u rocksdb\u files.sh”收集。因此,解决方案是编辑get\u rocksdb\u files.sh,更改make它将使用的。

相关问题