Installation
Consider getting Zig from your distribution’s package manager. Most major linux distros package the latest Zig release.
Installing manually
-
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:
-
Extract the archive using tar, e.g.
-
Add the location of your Zig binary to your path, e.g.
Consider getting Zig from a package manager such as chocolatey, scoop, or winget.
All commands shown are to be used inside Powershell.
Installing manually
-
Download a prebuilt version of Zig.
Choose a build of Zig 0.12 for Windows that matches your CPU architecture. Most Windows systems use
x86_64
, also known asAMD64
. If you’re unsure which architecture you’re using, this can be found with: -
Extract Zig.
-
Add Zig to your path:
Close your terminal and create a new one.
Consider getting Zig from a package manager such as brew.
Verifying your install
Verify your installation with zig version
. The output should look like this:
Extras
For completions and go-to-definition in your editor, consider installing the Zig Language Server.
Consider joining a Zig community.