Skip to content

Install the Prerequisites

Marko edited this page Jan 12, 2020 · 26 revisions

This is part of the Getting Started guide. Please read the full guide if you have trouble.


You will need the following tools:

You will find platform specific instructions to install these below.

Windows

Option 1: Windows subsystem for Linux (Windows 10 only)

Make sure to install the Windows Subsystem for Linux. If you haven't installed it yet, you can follow Microsoft's guide.
For installation instructions, refer to the instructions for Linux for the respective distribution.

Option 2: MSYS2

Install MSYS2.
In an MSYS2 shell, run:

pacman -S make cmake git bison flex mingw-w64-x86_64-gcc mingw-w64-x86_64-llvm mingw-w64-x86_64-clang mingw-w64-x86_64-lld

Note: Using a regular MSYS2 shell will fail later on as the required building system is not supported there.

macOS

You can install the prerequisites with Homebrew, this should do the job (Xcode ships with make, bison and flex):

brew install llvm cmake

Linux

Ubuntu

sudo apt install build-essential cmake flex bison clang lld git

Note: On older versions of Ubuntu, you may need to install lld via a LLVM nightly package instead.

Debian

sudo apt install build-essential cmake flex bison clang llvm lld git

openSUSE

sudo zypper install make cmake clang bison flex lld git llvm-devel