Skip to main content
Version: Zig 0.12.0

Installation

Consider getting Zig from your distribution's package manager. Most major linux distros package the latest Zig release.

Installing manually

  1. Download a prebuilt version of Zig.

    Choose a build of Zig 0.12 for Linux that matches your CPU architecture. If you're unsure which architecture you're using, this can be found with:

    uname -m
  2. Extract the archive using tar, e.g.

    tar xf zig-linux-x86_64-0.12.0.tar.xz
  3. Add the location of your Zig binary to your path, e.g.

    echo 'export PATH="$HOME/zig-linux-x86_64-0.12.0:$PATH"' >> ~/.bashrc

Verifying your install

Verify your installation with zig version. The output should look like this:

$ zig version
0.12.0

Extras

For completions and go-to-definition in your editor, consider installing the Zig Language Server.

Consider joining a Zig community.