-
Notifications
You must be signed in to change notification settings - Fork 69
Install the Prerequisites
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.
You will need the Windows Subsystem for Linux. If you haven't installed it yet, please follow this guide prior to start: https://docs.microsoft.com/it-it/windows/wsl/install-win10
The following assumes you've installed the base Ubuntu install image from the Microsoft Store. It's current version as of writing this is 18.04 which has the same install steps as a real Ubuntu image.
apt-get install build-essential cmake flex bison clang lld git
Install MSYS2
In a MSYS2 MinGW64 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
Using a regular MSYS2 shell will fail later on as the required building system is not supported there.
On macOS with Homebrew, this should do the job (XCode ships with make and bison and flex):
brew install llvm cmake
sudo apt-get install build-essential cmake flex bison clang lld git
On older versions of Ubuntu, you may need to install lld via a LLVM nightly package instead.
sudo apt install build-essential cmake flex bison clang llvm lld git