Compile
This document mainly describes how to compile TuGraph from source code.
1.Prerequisites
It is recommended to build TuGraph on a Linux system. Meanwhile, Docker is a good choice. If you want to set up a new environment, please refer to Dockerfile。
2.compile
Here are steps to compile TuGraph:
deps/build_deps.shor to skip building web interfaceSKIP_WEB=1 deps/build_deps.shcmake .. -DOURSYSTEM=centosorcmake .. -DOURSYSTEM=ubuntuIf support shell lgraph_cypher, use
-DENABLE_PREDOWNLOAD_DEPENDS_PACKAGE=1makemake packageorcpack --config CPackConfig.cmake
Example:
tugraph/tugraph-compile-centos7Docker environment
$ git clone --recursive https://github.com/TuGraph-family/tugraph-db.git
$ cd tugraph-db
$ deps/build_deps.sh
$ mkdir build && cd build
$ cmake .. -DOURSYSTEM=centos -DENABLE_PREDOWNLOAD_DEPENDS_PACKAGE=1
$ make
$ make package