Nebula-V3.01源码编译找不到包

  • nebula 版本:V3.0.1
  • 安装方式:源码编译
  • 是否为线上版本:Y
  • 硬件信息
    • 磁盘:500G HDD
    • 操作系统:LSB Version: :core-4.1-amd64:core-4.1-noarch
      Distributor ID: CentOS
      Description: CentOS Linux release 7.9.2009 (Core)
      Release: 7.9.2009
    • CPU: x86_64;32-bit, 64-bit;8核
    • 内存:30G
  • 问题的具体描述:
    源码编译阶段,cmake失败报错:Bzip2 doesn’t exist
    有按照官方文档进行操作,依赖库的版本都保持一致;看了其他用户的类似问题,将third-party安装到指定文件夹/opt/vesoft/third-party中依旧没起效果;麻烦帮忙看看,感谢感谢

如下为具体的cmake过程:

执行命令:

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nebula -DNEBULA_THIRDPARTY_ROOT=/opt/vesoft/third-party  -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
>>>> Options of Nebula Graph <<<<
-- 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_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_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       : OFF (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            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 17
-- CMAKE_CXX_COMPILER              : /opt/rh/devtoolset-11/root/usr/bin/c++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd (Linker to be used)
-- CCACHE                              : Enabled but not found
>>>> Configuring third party for 'Nebula Graph' <<<<
-- NEBULA_THIRDPARTY_ROOT          : /opt/vesoft/third-party
CMake Error at cmake/nebula/ThirdPartyConfig.cmake:33 (file):
  file failed to open for reading (No such file or directory):

    /opt/vesoft/third-party/version-info
Call Stack (most recent call first):
  CMakeLists.txt:48 (include)


-- Build info of nebula third party:

-- CMAKE_INCLUDE_PATH              : /opt/vesoft/third-party/include
-- CMAKE_LIBRARY_PATH              : /opt/vesoft/third-party/lib64;/opt/vesoft/third-party/lib
-- CMAKE_PROGRAM_PATH              : /opt/vesoft/third-party/bin
-- 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:48 (include)


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

将cmake/nebula/ThirdPartyConfig.cmake中的 find_package(Bzip2 REQUIRED) 和find_package(Fatal REQUIRED)删除。工程的依赖有问题。

1 个赞

好的,感谢感谢 我尝试一下

1 个赞

嗯嗯,你可以尝试之后如果解决问题了来勾选 tom 的回复为解决方案;如果没解决的话,来更新下帖子哈

好嘞,已经勾选;再次感谢

1 个赞

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