Created
February 20, 2024 11:17
-
-
Save jniltinho/16fcd23f0b8cc204bd75af844038475e to your computer and use it in GitHub Desktop.
Install Zig on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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