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:

  1. deps/build_deps.sh or to skip building web interface SKIP_WEB=1 deps/build_deps.sh

  2. cmake .. -DOURSYSTEM=centos or cmake .. -DOURSYSTEM=ubuntu

  3. If support shell lgraph_cypher, use -DENABLE_PREDOWNLOAD_DEPENDS_PACKAGE=1

  4. make

  5. make package or cpack --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