Skip to main content

Compilation on Windows

Compile With Windows

This topic is about how to compile Doris from source with Windows.

Environment Requirements

  1. Windows 11 or Windows 10, Version 1903, Build 18362 or newer
  2. Normal-functioning WSL2


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

  2. Open CMD and specify the identity to run WSL2

    wsl -d OracleLinux_7_9 -u root
  3. 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 && \
    tar zxf autoconf-2.69.tar.gz && \
    cd autoconf-2.69 && \
    ./configure && \
    make && \
    make install

    # install bison-3.0.4
    wget && \
    tar xzf bison-3.0.4.tar.gz && \
    cd bison-3.0.4 && \
    ./configure && \
    make && \
    make install
  4. Install LDB_TOOLCHAIN and other major compilation environments

  5. Configure environment variables

  6. Pull Doris source code

    git clone
  7. Compile

    cd doris


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.