This guide is about how to compile Doris on Linux using Ubuntu 24.04 or later versions.
# Oracle JDK 8 or OpenJDK 8 for Doris 2.1 and earlier versions sudo apt install openjdk-8-jdk # For versions later than 3.0 (inclusive), or the master branch, please use JDK 17 sudo apt install openjdk-17-jdk
GCC 10+, Python 2.7+, Apache Maven 3.5+, CMake 3.19.2+, Bison 3.0+
sudo apt install build-essential maven cmake byacc flex automake libtool-bin bison binutils-dev libiberty-dev zip unzip libncurses5-dev curl git ninja-build python sudo apt-get install -y software-properties-common sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa sudo apt update sudo apt install gcc-10 g++-10 sudo apt-get install autoconf automake libtool autopoint
$ cat /proc/cpuinfo | grep avx2
# By default, it builds AVX2 version. $ sh build.sh # If you need the no AVX2 version, add USE_AVX2=0. $ USE_AVX2=0 sh build.sh # To compile a debug version of BE, add BUILD_TYPE=Debug. $ BUILD_TYPE=Debug sh build.sh
output/ directory.