nebula2.0安装失败

  • nebula 版本:2.0最新版
  • 部署方式(分布式 / 单机 / Docker / DBaaS):编译源代码
  • 出问题的 Space 的创建方式:执行 sudo cmake -DENABLE_BUILD_STORAGE=on -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..;
  • 问题的具体描述
    运行cmake报错
Configuring incomplete, errors occurred!
See also "/home/wdx/nebula-graph/build/modules/common/CMakeFiles/CMakeOutput.log".
CMake Error at modules/common/cmake/nebula/ConfigNebulaCommon.cmake:62 (find_package):
  By not providing "Findnebula-common.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "nebula-common", but CMake did not find one.

  Could not find a package configuration file provided by "nebula-common"
  with any of the following names:
    nebula-commonConfig.cmake
    nebula-common-config.cmake
  Add the installation prefix of "nebula-common" to CMAKE_PREFIX_PATH or set
  "nebula-common_DIR" to a directory containing one of the above files.  If
  "nebula-common" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:99 (config_nebula_common)

-- Configuring incomplete, errors occurred!
See also "/home/wdx/nebula-graph/build/CMakeFiles/CMakeOutput.log".

几个仓库的代码版本一致吗

都是下载的最新的

我在我本地试了一下 你的命令 没有发现问题啊,请问你现在编译成功了吗

看看你的端口有没有问题,最近我们改了端口

你把完整的cmake贴出来吧,看下是不是nebula-common没有成功clone下来。

nebula-common确实编译不过。我也是git clone了nebula-graph的master分支,然后根据文档,mkdir build && cd build以后,执行cmake的配置:

sudo cmake -DENABLE_BUILD_STORAGE=on -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..

报错部分信息如下:

root@localhost:/ssd/github/nebula-v2/nebula-graph/build# cmake -DENABLE_BUILD_STORAGE=on -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.7.4") 
>>>> Options of Nebula Graph <<<<
-- ENABLE_ASAN                     : OFF (Build with AddressSanitizer)
-- ENABLE_BUILD_STORAGE            : on (Whether to build storage)
-- 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_PACK_ONE                 : ON (Whether to package into one)
-- 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                  : 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(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.)
-- CMAKE_INSTALL_PREFIX            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 14
-- CMAKE_CXX_COMPILER              : /usr/bin/c++ (CXX compiler)
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd
-- CCACHE_DIR                      : /root/.ccache
>>>> Configuring third party for 'Nebula Graph' <<<<
-- NEBULA_THIRDPARTY_ROOT          : /ssd/github/nebula-v2/nebula-graph/build/third-party/install
-- CMAKE_INCLUDE_PATH              : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib64;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin
-- GLIBC_VERSION                   : 2.23

-- Mstch_INCLUDE_DIR       : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include
-- Mstch_LIBRARY           : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libmstch.a
-- Found ZLIB: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libz.a (found version "1.2.11") 
-- Found OpenSSL: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libssl.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libcrypto.a (found version "1.1.1c") 
-- found krb5-config here /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include
-- Found kerberos 5 libs:    /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libgssapi_krb5.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libkrb5.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libk5crypto.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libcom_err.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libkrb5support.a
-- Boost version: 1.67.0
-- Found GPERF: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin/gperf (found suitable version "3.1", minimum required is "2.8") 
-- Found Libunwind: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libunwind.a  
-- Found BISON: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin/bison (found suitable version "3.0.5", minimum required is "3.0.5") 
-- Found FLEX: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin/flex (found version "2.6.4") 
-- Looking for lzma_auto_decoder in /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/liblzma.a
-- Looking for lzma_auto_decoder in /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/liblzma.a - found
-- Looking for lzma_easy_encoder in /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/liblzma.a
-- Looking for lzma_easy_encoder in /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/liblzma.a - found
-- Looking for lzma_lzma_preset in /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/liblzma.a
-- Looking for lzma_lzma_preset in /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/liblzma.a - found
-- Found LibLZMA: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include (found version "5.2.4") 
>>>> Configuring third party for 'Nebula Graph' done <<<<
-- Create the pre-commit hook
-- Creating pre-commit hook done
>>>> Configuring Nebula Common <<<<
>>>> Options of Nebula Common <<<<
-- 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_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                  : OFF (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                : Release (Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.)
-- CMAKE_INSTALL_PREFIX            : /usr/local/nebula (Install path prefix, prepended onto install directories.)
-- CMAKE_CXX_STANDARD              : 14
-- CMAKE_CXX_COMPILER              : /usr/bin/c++
-- CMAKE_CXX_COMPILER_ID           : GNU
-- NEBULA_USE_LINKER               : bfd
-- CCACHE_DIR                      : /root/.ccache
>>>> Configuring third party for 'Nebula Common' <<<<
-- NEBULA_THIRDPARTY_ROOT          : /ssd/github/nebula-v2/nebula-graph/build/third-party/install
-- CMAKE_INCLUDE_PATH              : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include
-- CMAKE_LIBRARY_PATH              : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib64;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib
-- CMAKE_PROGRAM_PATH              : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin
-- GLIBC_VERSION                   : 2.23

-- Mstch_INCLUDE_DIR       : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include
-- Mstch_LIBRARY           : /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libmstch.a
-- found krb5-config here /ssd/github/nebula-v2/nebula-graph/build/third-party/install/bin/krb5-config
-- Found kerberos 5 headers: /ssd/github/nebula-v2/nebula-graph/build/third-party/install/include
-- Found kerberos 5 libs:    /ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libgssapi_krb5.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libkrb5.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libk5crypto.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libcom_err.a;/ssd/github/nebula-v2/nebula-graph/build/third-party/install/lib/libkrb5support.a
-- Boost version: 1.67.0
>>>> Configuring third party for 'Nebula Common' done <<<<
-- Create the pre-commit hook
-- Creating pre-commit hook done
CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "base_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/base/CMakeLists.txt:10 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "time_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/time/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "time_utils_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/time/CMakeLists.txt:13 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "network_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/network/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "thrift_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/thrift/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "fs_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/fs/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "concurrent_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/concurrent/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "thread_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/thread/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "process_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/process/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "hdfs_helper_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/hdfs/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "http_client_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/http/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "stats_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/stats/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "charset_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/charset/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "nebula_algo_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/algorithm/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "encryption_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/encryption/CMakeLists.txt:6 (nebula_add_library)


CMake Error at cmake/ThriftGenerate.cmake:115 (export):
  export given OBJECT library "common_thrift_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/interface/CMakeLists.txt:15 (thrift_generate)


CMake Error at cmake/ThriftGenerate.cmake:115 (export):
  export given OBJECT library "graph_thrift_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/interface/CMakeLists.txt:18 (thrift_generate)


CMake Error at cmake/ThriftGenerate.cmake:115 (export):
  export given OBJECT library "raftex_thrift_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/interface/CMakeLists.txt:21 (thrift_generate)


CMake Error at cmake/ThriftGenerate.cmake:115 (export):
  export given OBJECT library "storage_thrift_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/interface/CMakeLists.txt:24 (thrift_generate)


CMake Error at cmake/ThriftGenerate.cmake:115 (export):
  export given OBJECT library "meta_thrift_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/interface/CMakeLists.txt:33 (thrift_generate)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "datatypes_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/datatypes/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "ws_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/webservice/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "ws_common_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/webservice/CMakeLists.txt:18 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "conf_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/conf/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "meta_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/meta/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "expression_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/expression/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "expr_ctx_mock_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/expression/test/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "graph_client_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/clients/graph/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "meta_client_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/clients/meta/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "file_based_cluster_id_man_obj" which may not
  be exported.
Call Stack (most recent call first):
  src/common/clients/meta/CMakeLists.txt:11 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "graph_storage_client_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/clients/storage/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "general_storage_client_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/clients/storage/CMakeLists.txt:12 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "storage_client_base_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/clients/storage/CMakeLists.txt:18 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "internal_storage_client_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/clients/storage/CMakeLists.txt:24 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "function_manager_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/function/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "graph_obj" which may not be exported.
Call Stack (most recent call first):
  src/common/graph/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "ft_es_graph_adapter_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/plugin/fulltext/CMakeLists.txt:6 (nebula_add_library)


CMake Error at CMakeLists.txt:60 (export):
  export given OBJECT library "ft_es_storage_adapter_obj" which may not be
  exported.
Call Stack (most recent call first):
  src/common/plugin/fulltext/CMakeLists.txt:11 (nebula_add_library)


-- Configuring incomplete, errors occurred!
See also "/ssd/github/nebula-v2/nebula-graph/build/modules/common/CMakeFiles/CMakeOutput.log".
CMake Error at modules/common/cmake/nebula/ConfigNebulaCommon.cmake:62 (find_package):
  By not providing "Findnebula-common.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "nebula-common", but CMake did not find one.

  Could not find a package configuration file provided by "nebula-common"
  with any of the following names:

    nebula-commonConfig.cmake
    nebula-common-config.cmake

  Add the installation prefix of "nebula-common" to CMAKE_PREFIX_PATH or set
  "nebula-common_DIR" to a directory containing one of the above files.  If
  "nebula-common" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:100 (config_nebula_common)


-- Configuring incomplete, errors occurred!
See also "/ssd/github/nebula-v2/nebula-graph/build/CMakeFiles/CMakeOutput.log".

PS:在此之前,也试过单独编译nebula-common,错误相同。

cmake版本是多少

cmake version 3.5.1

用新一点的版本吧

嗯,换了3.19.5, 已经好了。

另外,代码中有几个fallthrough的警告。因为编译参数默认的是警告当错误处理,也会报错。指定参数后好了。

2 个赞