Skip to content

Compile EN

liuhuicong edited this page Feb 19, 2019 · 1 revision

How To Compile

We use Bazel to resolve dependencies and build BaikalDB automatically. The build has been successful on Ubuntu 16.04 and CentOS 7. More platforms will be supported soon.

Ubuntu 16.04

  • Install bazel, we recommend version 0.18.1 or earlier. Later versions may be incompatible with the BUILD file.
  • Install flex, bison and openssl library: sudo apt-get install flex bison libssl-dev
  • Install g++ (v4.8.2 or later): sudo apt-get install g++
  • bazel build //:all

CentOS 7

  • Install bazel.
  • sudo yum install flex bison patch openssl-devel
  • sudo yum install gcc-c++ (v4.8.2 or later)
  • bazel build //:all

You may brew and enjoy a cup of coffee waiting for the tedious building process

Clone this wiki locally