nebula源码阅读开发笔记(一)
in with 0 comment

nebula源码阅读开发笔记(一)

in with 0 comment

准备工作

nebula的开发和调试环境。,由于本地资源不足只能借助远程的服务器来进行编译执行和测试。 本地使用的是clion。

准备环境

yum update && yum install -y make m4 git wget unzip xz readline-devel ncurses-devel zlib-devel gcc gcc-c++ cmake gettext curl redhat-lsb-core bzip2
git clone -b v2.6.1 https://github.com/vesoft-inc/nebula.git

cd nebula && ./third-party/install-cmake.sh cmake-install

source cmake-install/bin/enable-cmake.sh

sudo mkdir /opt/vesoft && sudo chmod -R a+w /opt/vesoft

./third-party/install-gcc.sh --prefix=/opt

source /opt/vesoft/toolset/gcc/7.5.0/enable
./third-party/install-third-party.sh

配置本地clion的环境

其中cmake gcc c++等相关的信息需要配置上边安装的目录的路径。

添加remote-debug 其中toolchain 选择你刚添加的远程主机
配置
其中 cmake option -DCMAKE_BUILD_TYPE=Debug
同时编译进程数根据服务器适当增大减少每次编译的时间

编译源码

全部配置完成后随便打开一个cpp文件加载工程目录的cmake 重新导入。导入的过程中会在远程进行编译等待编译完成

Responses