单机部署3.5.0 cmake时报错

  • nebula 版本:3.5.0
  • 部署方式:单机
  • 安装方式:源码编译
  • 是否上生产环 N
  • 硬件信息
    • 磁盘 ssd
    • 4核8g
  • 问题的具体描述
    单机cmake时报错,cmake语句:
    cmake -DCMAKE_INSTALL_PREFIX=/root/nebula -DENABLE_TESTING=OFF -DENABLE_STANDALONE_VERSION=on -DCMAKE_BUILD_TYPE=Release …
  • 相关的 meta / storage / graph info 日志信息
>>>> Options of Nebula Graph <<<<
-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_BREAKPAD                 : OFF (Whether to enable breakpad)
-- ENABLE_CCACHE                   : ON (Use ccache to speed up compiling)
-- ENABLE_CLANG_TIDY               : OFF (Enable clang-tidy if present)
-- ENABLE_COMPILER_LAUNCHER        : ON (Using compiler launcher if available)
-- ENABLE_COMPRESSED_DEBUG_INFO    : ON (Compress debug info to reduce binary size)
-- ENABLE_CONSOLE_COMPILATION      : OFF (Enable nebula-console compilation)
-- ENABLE_COVERAGE                 : OFF (Build with coverage report)
-- ENABLE_CREATE_GIT_HOOKS         : ON (Enable create git hooks.)
-- 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_INCLUDE_WHAT_YOU_USE     : OFF (Enable include-what-you-use find  nouse include files)
-- ENABLE_JEMALLOC                 : ON (Use jemalloc as memory allocator)
-- ENABLE_MEMORY_TRACKER           : ON (Enable memory tracker)
-- ENABLE_PACKAGE_TAR              : OFF (Enable package artifacts to tar.)
-- ENABLE_PACK_ONE                 : ON (Whether to package into one)
-- ENABLE_PIC                      : OFF (Build with -fPIC)
-- ENABLE_STANDALONE_VERSION       : on (Enable standalone version build)
-- 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                  : OFF (Build unit tests)
-- ENABLE_TSAN                     : OFF (Build with ThreadSanitizer)
-- ENABLE_UBSAN                    : OFF (Build with UndefinedBehaviourSanitizer)
-- ENABLE_VERBOSE_BISON            : OFF (Enable Bison to report state)
-- ENABLE_WERROR                   : ON (Regard warnings as errors)
-- CMAKE_BUILD_TYPE                : Release (Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ...)
-- CMAKE_INSTALL_PREFIX            : /root/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 17
-- CMAKE_CXX_COMPILER              : /usr/bin/c++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd (Linker to be used)
-- ccache found and enabled
>>>> Configuring third party for 'Nebula Graph' <<<<
-- NEBULA_THIRDPARTY_ROOT          : /opt/vesoft/third-party/3.3
-- Build info of nebula third party:
Package         : Nebula Third Party
Version         : 3.3
Date            : Wed Feb  1 06:17:52 UTC 2023
glibc           : 2.17
Arch            : x86_64
Compiler        : GCC 8.3.0
C++ ABI         : 11
Vendor          : VEsoft Inc.

-- CMAKE_INCLUDE_PATH              : /opt/vesoft/third-party/3.3/include
-- CMAKE_LIBRARY_PATH              : /opt/vesoft/third-party/3.3/lib64;/opt/vesoft/third-party/3.3/lib
-- CMAKE_PROGRAM_PATH              : /opt/vesoft/third-party/3.3/bin
-- GLIBC_VERSION                   : 2.17

-- Could NOT find Threads (missing: Threads_FOUND) 
-- found krb5-config here /opt/vesoft/third-party/3.3/bin/krb5-config
-- Found kerberos 5 headers: /opt/vesoft/third-party/3.3/include
-- Found kerberos 5 libs:    /opt/vesoft/third-party/3.3/lib/libgssapi_krb5.a;/opt/vesoft/third-party/3.3/lib/libkrb5.a;/opt/vesoft/third-party/3.3/lib/libk5crypto.a;/opt/vesoft/third-party/3.3/lib/libcom_err.a;/opt/vesoft/third-party/3.3/lib/libkrb5support.a
CMake Error at /usr/local/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find LibLZMA (missing: LIBLZMA_HAS_AUTO_DECODER
  LIBLZMA_HAS_EASY_ENCODER LIBLZMA_HAS_LZMA_PRESET) (found version "5.2.5")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.25/Modules/FindLibLZMA.cmake:89 (find_package_handle_standard_args)
  cmake/nebula/ThirdPartyConfig.cmake:120 (find_package)
  CMakeLists.txt:49 (include)


-- Configuring incomplete, errors occurred!
See also "/root/nebula/build/CMakeFiles/CMakeOutput.log".
See also "/root/nebula/build/CMakeFiles/CMakeError.log".
1 个赞

-DCMAKE_C_COMPILER 指定了gcc路径以后修复了 参考了这个帖子 v2.0.0-beta编译缺少LibLZMA

1 个赞

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。