源码编译错误

运行cmake -DENABLE_TESTING=OFF -DCMAKE_BUILD_TYPE=Release … 报错

CMake Error at /usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find Readline (missing: Readline_INCLUDE_DIR Readline_LIBRARY)
Call Stack (most recent call first):
  /usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindReadline.cmake:39 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:266 (find_package)


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

请按照文档来:
https://docs.nebula-graph.com.cn/manual-CN/3.build-develop-and-administration/1.build/1.build-source-code/

缺少了readline

Readline安装了吗?需要按照这个文档来源码编译.

https://docs.nebula-graph.io/manual-EN/3.build-develop-and-administration/1.build/1.build-source-code/

万分抱歉,看漏了这一部分。。。。。

已经安装文档安装,进行到make 时,报错:
In file included from /opt/vesoft/third-party/include/folly/portability/Config.h:20:0,
from /opt/vesoft/third-party/include/folly/Portability.h:21,
from /opt/vesoft/third-party/include/folly/Range.h:22,
from /opt/vesoft/third-party/include/thrift/lib/cpp/Thrift.h:20,
from /opt/vesoft/third-party/include/thrift/lib/cpp2/Thrift.h:20,
from /home/caoyuan05/nebula/build/src/interface/gen-cpp2/common_types.h:10,
from /home/caoyuan05/nebula/build/src/interface/gen-cpp2/common_types.cpp:7:
/opt/vesoft/third-party/include/folly/folly-config.h:40:18: error: missing binary operator before token “(”
#if __has_include(<features.h>)
^
In file included from /opt/vesoft/third-party/include/folly/Portability.h:21:0,
from /opt/vesoft/third-party/include/folly/Range.h:22,
from /opt/vesoft/third-party/include/thrift/lib/cpp/Thrift.h:20,
from /opt/vesoft/third-party/include/thrift/lib/cpp2/Thrift.h:20,
from /home/caoyuan05/nebula/build/src/interface/gen-cpp2/common_types.h:10,
from /home/caoyuan05/nebula/build/src/interface/gen-cpp2/common_types.cpp:7:
/opt/vesoft/third-party/include/folly/portability/Config.h:27:18: error: missing binary operator before token “(”
#if __has_include(<features.h>)

你是在什么系统下面编译,还有可以看下gcc的版本吗

CentOS 7

将下面两条命令的执行结果截下图,谢谢

uname -a
g++ --version

Linux 4.18.0-80.mt20191225.323.el8_0.x86_64 #1 SMP Fri Jan 10 15:57:27 CST 2020 x86_64 x86_64 x86_64 GNU/Linux
g++ (GCC) 7.5.0

请问你的编译器自己下载安装的吗?centos8自带的编译器不是这个版本,我们提供的编译器打印出来的是

g++ (Nebula Graph Build) 7.5.0

g++是么?是我自己安装的,我们自带版本比较旧了,是需要使用Nebula提供的g++么?

你换成我们提供的再看看


这个步骤是吧?

是的

好的,我试一下

你执行下这个,把结果贴下
cpp --version

cpp (GCC) 7.5.0

Copyright (C) 2017 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.

用我们提供的编译器还有问题吗?

还在看,我们机器没发访问外网,

用户这种方式安装,提示没有下面的文件夹

sudo bash … 执行的时候有报错吗?