-
nebula 版本:v2.5.1
-
操作系统版本 centos 7.2
-
GCC & CMAKE & glibc版本
gcc (GCC) 7.5.0
cmake version 3.21.4
glibc 2.17 -
问题的具体描述
在本地机器离线编译nebula-graph,报错Could NOT find LibLZMA
编译命令如下:cmake -DENABLE_BUILD_STORAGE=on -DENABLE_PIC=ON -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/vesoft/install -DNEBULA_THIRDPARTY_ROOT=/opt/vesoft/third-party/2.0/
详细报错日志:
-- Found Boost: /opt/vesoft/third-party/2.0/include (found version "1.75.0")
-- Found Libunwind: /opt/vesoft/third-party/2.0/lib/libunwind.a
-- Found BISON: /opt/vesoft/third-party/2.0/bin/bison (found suitable version "3.0.5", minimum required is "3.0.5")
-- Found FLEX: /opt/vesoft/third-party/2.0/bin/flex (found version "2.6.4")
-- Looking for lzma_auto_decoder in /opt/vesoft/third-party/2.0/lib/liblzma.a
-- Looking for lzma_auto_decoder in /opt/vesoft/third-party/2.0/lib/liblzma.a - not found
-- Looking for lzma_easy_encoder in /opt/vesoft/third-party/2.0/lib/liblzma.a
-- Looking for lzma_easy_encoder in /opt/vesoft/third-party/2.0/lib/liblzma.a - not found
-- Looking for lzma_lzma_preset in /opt/vesoft/third-party/2.0/lib/liblzma.a
-- Looking for lzma_lzma_preset in /opt/vesoft/third-party/2.0/lib/liblzma.a - not found
CMake Error at /opt/cmake-3.16.5/share/cmake-3.21/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.4")
Call Stack (most recent call first):
/opt/cmake-3.16.5/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/opt/cmake-3.16.5/share/cmake-3.21/Modules/FindLibLZMA.cmake:89 (find_package_handle_standard_args)
modules/common/cmake/nebula/ThirdPartyConfig.cmake:106 (find_package)
CMakeLists.txt:75 (include)