Compile With Windows
This topic is about how to compile Doris from source with Windows.
Environment Requirementsβ
- Windows 11 or Windows 10, Version 1903, Build 18362 or newer
- Normal-functioning WSL2
Stepsβ
-
Install the Oracle Linux 7.9 distribution from the Microsoft Store
You can also install other distros you want via Docker images or Github installs
-
Open CMD and specify the identity to run WSL2
wsl -d OracleLinux_7_9 -u root
-
Install dependencies
# Install required system packages
sudo yum install -y byacc patch automake libtool make which file ncurses-devel gettext-devel unzip bzip2 zip util-linux wget git python2
# Install autoconf-2.69
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz && \
tar zxf autoconf-2.69.tar.gz && \
cd autoconf-2.69 && \
./configure && \
make && \
make install
# install bison-3.0.4
wget http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz && \
tar xzf bison-3.0.4.tar.gz && \
cd bison-3.0.4 && \
./configure && \
make && \
make install -
Install LDB_TOOLCHAIN and other major compilation environments
-
Configure environment variables
-
Pull Doris source code
git clone http://github.com/apache/doris.git
-
Compile
cd doris
sh build.sh
Noteβ
The default data storage drive letter of WSL2 distribution is the C drive. If neccessary, you can change that to prevent the system drive letter from getting full.