Install Zig on Any Platform
Grab a release and put zig on your PATH.
Install Zig on Any Platform is a free Zig Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Zig Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
A Single, Portable Tool
Installing Zig means downloading one self-contained archive. There is no big installer and no system-wide setup to fight with. 🦎
Grab an Official Release
Head to ziglang.org/download and pick a release build for your operating system and CPU architecture, like x86_64 or aarch64.
Stable vs Nightly
Choose a tagged stable release for learning. Zig also offers nightly master builds, but those change fast and can break your code.
It Is Just a Folder
The download unzips to a folder holding the zig binary plus its standard library. Nothing is scattered across your system.
Unpack on Linux or macOS
Extract the tarball anywhere you like, for example into a tools directory in your home folder. The extracted zig file is the whole compiler.
tar -xf zig-linux-x86_64-0.13.0.tar.xz
mv zig-linux-x86_64-0.13.0 ~/zigUnpack on Windows
On Windows you download a zip archive instead. Right-click and extract it to a stable location such as C:\zig that will not move.
Add Zig to Your PATH
For the shell to find Zig anywhere, add its folder to your PATH. Then any terminal can run the zig command directly.
export PATH="$HOME/zig:$PATH"Make PATH Permanent
Put that export line in your shell profile, like .zshrc or .bashrc, so the PATH change survives after you close the terminal.
Verify the Version
Confirm everything works by asking Zig to print its version. A number coming back means the compiler is installed and on your PATH.
zig versionPackage Managers Work Too
You can also install via Homebrew, Scoop, or your distro, but manual download guarantees the exact version you intend to learn with.
brew install zigNo Runtime to Install
Unlike many languages, Zig has no separate runtime or virtual machine to set up. The single compiler is genuinely all you need.
Quick Check
You just downloaded and extracted Zig. What is the final step before you can type zig anywhere?
Recap
Zig installs as one portable folder: download a stable release, unpack it, add it to your PATH, and confirm with zig version. 🎯
Frequently asked questions
Is the “Install Zig on Any Platform” lesson free?
Yes — the full text of “Install Zig on Any Platform” is free to read here on the web, and the Zig Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Zig Academy course, upgrade to CoddyKit PRO.
What will I learn in “Install Zig on Any Platform”?
Grab a release and put zig on your PATH. You practise Zig Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Zig Academy?
No prior experience is required. Zig Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Install Zig on Any Platform” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Zig Academy lesson?
Yes. Every Zig Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Install Zig on Any Platform
- Your First main Function
- Printing with std.debug.print
- Compile and Run in One Step