Tendis
Tendis copied to clipboard
编译安装报错
gcc -v
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/local/gcc-5.5.0/libexec/gcc/x86_64-unknown-linux-gnu/5.5.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../configure --prefix=/usr/local/gcc-5.5.0/ --enable-checking=release --enable-languages=c,c++ --disable-multilib Thread model: posix gcc version 5.5.0 (GCC)
cmake -version
cmake version 3.13.0
CMake suite maintained and supported by Kitware (kitware.com/cmake).
编译安装版本:Tendis-2.6.0-rocksdb-v6.23.3.tar.gz
执行 cmake .. 命令时报错,报错信息:
cmake ..
#define TENDISPLUS_GIT_SHA1 "00000000" #define TENDISPLUS_GIT_DIRTY "0" /usr/local/gcc-5.5.0/bin/g++ using rocksdb-6.23.3 RocksDB git patch, we apply add-property-rocksdb.levelstatsex-in-rocksdb fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git fatal: Not a git repository (or any of the parent directories): .git jemalloc git patch, we force set jemalloc prof:true error: src/prof.c: No such file or directory CMake Error at CMakeLists.txt:151 (add_subdirectory): The source directory
/root/Tendis-2.6.0-rocksdb-v6.23.3/src/thirdparty/gflag
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:152 (add_subdirectory): The source directory
/root/Tendis-2.6.0-rocksdb-v6.23.3/src/thirdparty/snappy
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:153 (target_compile_options): Cannot specify compile options for target "snappy" which is not built by this project.
CMake Error at CMakeLists.txt:154 (add_subdirectory): add_subdirectory given source "src/thirdparty/lz4/contrib/cmake_unofficial" which is not an existing directory.
CMake Error at CMakeLists.txt:155 (add_subdirectory): The source directory
/root/Tendis-2.6.0-rocksdb-v6.23.3/src/thirdparty/googletest
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:156 (add_subdirectory): The source directory
/root/Tendis-2.6.0-rocksdb-v6.23.3/src/thirdparty/glog
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:181 (add_subdirectory): The source directory
/root/Tendis-2.6.0-rocksdb-v6.23.3/src/thirdparty/rapidjson
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:184 (add_subdirectory): The source directory
/root/Tendis-2.6.0-rocksdb-v6.23.3/src/thirdparty/rocksdb/rocksdb
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:185 (target_compile_options): Cannot specify compile options for target "rocksdb" which is not built by this project.
-O3 -DNDEBUG -- Configuring incomplete, errors occurred! See also "/root/Tendis-2.6.0-rocksdb-v6.23.3/build/CMakeFiles/CMakeOutput.log".
我最初也碰到这个问题,直接重新拉取源码,cmake就通过了,不要下载tar包
git clone 下载之后,需要执行一下
git submodule update --init --recursive
下载其他依赖的代码