Created
October 9, 2024 18:56
-
-
Save rjmacarthy/8d3c86216527904ac9eddc4a8111b412 to your computer and use it in GitHub Desktop.
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
# Create a temporary directory | |
mkdir ~/zig-temp | |
cd ~/zig-temp | |
# Download Zig 0.13.0 | |
wget https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz | |
# Extract the archive | |
tar -xvf zig-linux-x86_64-0.13.0.tar.xz | |
# Move Zig to /usr/local | |
sudo mv zig-linux-x86_64-0.13.0 /usr/local/zig | |
# Create a symbolic link | |
sudo ln -s /usr/local/zig/zig /usr/local/bin/zig | |
# Clean up | |
cd ~ | |
rm -rf ~/zig-temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment