- nebula 版本:v3.5.0
- 部署方式:单机
- 安装方式:RPM
- 是否上生产环境:Y
- 硬件信息
- 磁盘( 推荐使用 SSD)
- CPU、内存信息
- 问题的具体描述
编译nebula-cpp client报错。自己定位了下原因,主要是这个 cdn 的文件找不到了。
https://oss-cdn.nebula-graph.com.cn/third-party/2.0/vesoft-third-party-2.0-x86_64-libc-2.17-gcc-7.1.0-abi-11.sh
看了 nebula-cpp/third-party/install-third-party.sh 里面的逻辑,曾经是支持libc-2.17-gcc-7.1.0这个组合的。我猜是cdn上的文件 vesoft-third-party-2.0-x86_64-libc-2.17-gcc-7.1.0-abi-11.sh 被删了?请求恢复一下?
libc_preset_versions=( 2.32 2.31 2.28 2.27 2.23 2.17 )
gcc_preset_versions=( 10.1.0 9.3.0 9.2.0 9.1.0 8.3.0 7.5.0 7.1.0 )
编译环境
[root@centos]# ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
[root@centos]# g++ -v
Using built-in specs.
COLLECT_GCC=/bin/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/7/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --with-default-libstdcxx-abi=gcc4-compatible --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --enable-libmpx --enable-offload-targets=nvptx-none --without-cuda-driver --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 7.3.1 20180303 (Red Hat 7.3.1-6) (GCC)
[root@centos]# cmake3 --version
cmake3 version 3.17.3
报错信息
[root@centos]# cmake3 ..
>>>> Options of Nebula C++ Client <<<<
-- ENABLE_ASAN : OFF (Build with AddressSanitizer)
-- ENABLE_CCACHE : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY : OFF (Enable clang-tidy if present)
-- ENABLE_COMPRESSED_DEBUG_INFO : ON (Compress debug info to reduce binary size)
-- ENABLE_COVERAGE : OFF (Build with coverage report)
-- ENABLE_FRAME_POINTER : OFF (Build with frame pointer)
-- ENABLE_FUZZY_TESTING : OFF (Enable Fuzzy tests)
-- ENABLE_GDB_SCRIPT_SECTION : OFF (Add .debug_gdb_scripts section)
-- ENABLE_JEMALLOC : ON (Use jemalloc as memory allocator)
-- ENABLE_MODULE_UPDATE : OFF (Automatically update module)
-- ENABLE_PIC : OFF (Build with -fPIC)
-- ENABLE_STATIC_ASAN : OFF (Statically link against libasan)
-- ENABLE_STATIC_UBSAN : OFF (Statically link against libubsan)
-- ENABLE_STRICT_ALIASING : OFF (Build with -fstrict-aliasing)
-- ENABLE_TESTING : ON (Build unit tests)
-- ENABLE_TSAN : OFF (Build with ThreadSanitizer)
-- ENABLE_UBSAN : OFF (Build with UndefinedBehaviourSanitizer)
-- ENABLE_WERROR : ON (Regard warnings as errors)
-- Set D_GLIBCXX_USE_CXX11_ABI to 1
-- CMAKE_BUILD_TYPE : Debug (Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...)
-- CMAKE_INSTALL_PREFIX : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD : 17
-- CMAKE_CXX_COMPILER : /usr/lib64/ccache/c++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID : GNU
-- NEBULA_USE_LINKER : bfd
-- CCACHE_DIR : /root/.ccache
>>>> Configuring third party for 'Nebula C++ Client' <<<<
-- Downloading prebuilt third party automatically...
-- cxx_cmd: /usr/lib64/ccache/c++ -D_GLIBCXX_USE_CXX11_ABI=1
Downloading vesoft-third-party-2.0-x86_64-libc-2.17-gcc-7.1.0-abi-11.sh...
Downloading vesoft-third-party-2.0-x86_64-libc-2.17-gcc-7.1.0-abi-11.sh failed
-- CMAKE_INCLUDE_PATH :
-- CMAKE_LIBRARY_PATH :
-- CMAKE_PROGRAM_PATH :
-- GLIBC_VERSION : 2.17
CMake Error at cmake/FindBzip2.cmake:31 (message):
Bzip2 doesn't exist
Call Stack (most recent call first):
cmake/nebula/ThirdPartyConfig.cmake:81 (find_package)
CMakeLists.txt:43 (include)