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:
run
deps/build_deps.sh
to build tugraph-web if you need. Skip this step otherwise.cmake .. -DOURSYSTEM=centos
orcmake .. -DOURSYSTEM=ubuntu
If compiling on an arm machine (such as a Mac with M1 chip), add
-DENABLE_BUILD_ON_AARCH64=ON
make
make package
orcpack --config CPackConfig.cmake
Example:
tugraph/tugraph-compile-centos7
Docker 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=centos7
$ make
$ make package