Skip to content

Instantly share code, notes, and snippets.

@jniltinho
Created February 20, 2024 11:17
Show Gist options
  • Save jniltinho/16fcd23f0b8cc204bd75af844038475e to your computer and use it in GitHub Desktop.
Save jniltinho/16fcd23f0b8cc204bd75af844038475e to your computer and use it in GitHub Desktop.
Install Zig on Linux
#!/bin/bash
## Links
## Ubuntu|Debian|Linux
## https://ziglang.org/documentation/master/
## https://ziglang.org/learn/getting-started/
## https://zig.guide/build-system/build-modes/
## https://zig.guide/
## https://github.com/C-BJ/awesome-zig
## https://github.com/zigzap/zap
## https://github.com/karlseguin/http.zig
VERSION=zig-linux-x86_64-0.11.0
wget https://ziglang.org/builds/${VERSION}.tar.xz
tar xvf ${VERSION}.tar.xz
rm -f ${VERSION}.tar.xz
mv ${VERSION} /usr/local/zig
echo 'export PATH=$PATH:/usr/local/zig' >>/etc/profile
export PATH=$PATH:/usr/local/zig
zig help
zig version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment