源码编译3.5.0 报错

  • nebula 版本:3.5.0
  • 部署方式: 单机
  • 安装方式:源码编译
  • 是否上生产环境:N
  • 硬件信息

执行./install-third-party.sh 报错 (当前是x86环境)

[root@bogon third-party]#   git clone --branch release-3.5 https://github.com/vesoft-inc/nebula.git

[root@bogon third-party]# ./install-third-party.sh
g++: 错误:unrecognized command line option ‘-std=c++14’
Downloading vesoft-third-party-3.3-x86_64-libc-2.17-gcc--abi-.sh...
--2023-06-30 15:10:16--  https://oss-cdn.nebula-graph.com.cn/third-party/3.3/vesoft-third-party-3.3-x86_64-libc-2.17-gcc--abi-.sh
正在解析主机 oss-cdn.nebula-graph.com.cn (oss-cdn.nebula-graph.com.cn)... 220.181.125.248
正在连接 oss-cdn.nebula-graph.com.cn (oss-cdn.nebula-graph.com.cn)|220.181.125.248|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 404 Not Found
2023-06-30 15:10:17 错误 404:Not Found。

https://oss-cdn.nebula-graph.com.cn/third-party/3.3/vesoft-third-party-3.3-x86_64-libc-2.17-gcc--abi-.sh
url访问结果如下,也不太明白意思

arm环境构建源码也是报错(nebula-release-3.5)

[root@localhost third-party]# ./install-third-party.sh
Downloading vesoft-third-party-3.3-aarch64-libc-2.28-gcc-7.1.0-abi-11.sh...
Downloading vesoft-third-party-3.3-aarch64-libc-2.28-gcc-7.1.0-abi-11.sh failed

执行如下命令安装和启用 GCC 和 CMake

// 安装 CMake。
cd nebula
./third-party/install-cmake.sh cmake-install

// 启用 CMake。
source cmake-install/bin/enable-cmake.sh

//opt 目录添加写权限。
sudo mkdir /opt/vesoft && sudo chmod -R a+w /opt/vesoft

// 安装 GCC。安装到 opt 目录需要写权限,用户也可以修改为其他目录。
./third-party/install-gcc.sh --prefix=/opt

// 启用 GCC。
source /opt/vesoft/toolset/gcc/9.3.0/enable
2 个赞

从你尝试下载third party版本来看,当时你的机器上没有安装gcc等工具。
你在这篇回帖里总结的操作是正确的,这样安装了我们预编译好的gcc

arm上用的gcc版本太低了,建议用gcc 9.3.0。我们已经不为gcc8以下的版本发third party了