Compiling with LDB toolchain
This works for most Linux distributions (CentOS, Ubuntu, etc.).
Download
ldb_toolchain_gen.sh
The latest
ldb_toolchain_gen.sh
can be downloaded from . This script is used to generate the ldb toolchain.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/
.├── lib
├── share
├── test
Download and install other compiled components
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.
-
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:
$ 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