Compile 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.

      For more information, you can visit https://github.com/amosbird/ldb_toolchain_gen

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

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

      1. ├── include
      2. ├── share
      3. ├── test
      4. └── usr
    3. Download Doris source code

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

      After downloading, create the custom_env.sh, file under the Doris source directory, and set the PATH environment variable:

      Check whether the compilation machine supports the avx2 instruction set.

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

      If supported, execute directly.

      This script will compile the third-party libraries first and then the Doris components (FE, BE) later. The compiled output will be in the output/ directory.

      The build.sh script will first compile the third-party dependencies. You can also directly download the precompiled three-party binaries:

      https://github.com/apache/doris-thirdparty/releases

      After downloading, you will get an installed/ directory after decompression, copy this directory to the thirdparty/ directory, and then run build.sh.