Compiling with LDB toolchain

    This works for most Linux distributions (CentOS, Ubuntu, etc.).

    1. Download ldb_toolchain_gen.sh

      The latest ldb_toolchain_gen.sh can be downloaded from . This script is used to generate the ldb toolchain.

    2. Execute the following command to generate the ldb toolchain

      where /path/to/ldb_toolchain/ is the directory where the toolchain is installed.

      After successful execution, the following directory structure will be created under /path/to/ldb_toolchain/.

      1. ├── lib
      2. ├── share
      3. ├── test
    3. Download and install other compiled components

      1. Apache Maven 3.6.3

      If your environment is somehow minimal, additional packages should be installed before compiling Doris. The following instructions describe how to setup a minimal CentOS 6 box to compile Doris. Other linux distros should be similar.

      1. git clone https://github.com/apache/doris.git

      After downloading, go to the Doris source directory, create the custom_env.sh, file, and set the PATH environment variable, e.g.

    Compiling Doris

    Enter the Doris source code directory and execute:

    1. $ cat /proc/cpuinfo | grep avx2

    Check whether the compilation machine supports the avx2 instruction set

    If it is not supported, use the following command to compile

    If supported, execute sh build.sh directly