Building Qri on Windows

This page was adapted from a blog post written by friend of the project Jonathan Butler.

Step 1: Enable Developer Mode

If developer mode isn’t enabled, you may experience permission errors during building. To prevent this, enable developer mode by visiting Microsoft’s Dev Center.

Step 2: Download Go

Qri requires Go the programming language and its packages to run. You can download Go from their official website.

Step 3: Download MSYS2

You can also use your own shell program. However, we recommend using MSYS2 which is officially supported for building qri. You can find the MSYS2 download link here.

Step 4: Add the Environment Variables

In this example, I type “Environment Variable” into the search bar. I add two new variables:


and I add my go bin directory to the path:


which is done in the settings by adding a new entry to PATH whose value is %GOPATH%\bin.

Step 5: Download Git and Make

To download both packages, open an msys2 shell and type

pacman -S git make

Step 6: Clone Qri

Next, you must create a folder for Qri to live in and add the packages and code to the folder. This can all be done from the shell like in the example above. Type the commands below into the shell.

$ cd $GOPATH
$ mkdir -p src/
$ cd src/
$ git clone

Step 7: Build Qri

If you are already in the Qri folder you don’t need to change directories into it. You can distinguish which folder you are currently in by looking on the right side of the magenta MSYS (If it is ~ you are in the default folder for MSYS).

If you are not in a folder path that ends in qri, type the command below into the shell.

$ cd $GOPATH/src/

Once you are in the folder you can then run the commands

export GO111MODULE=on
$ make build

Then you’re done! A new binary (exe file) should appear in your $GOPATH/bin. You can verify the successful installation by typing the command below into the shell.

$ qri help