Installation
Quick Install
Section titled “Quick Install”The fastest way to install Run on macOS or Linux is with the install script:
curl -fsSL https://runlang.dev/install.sh | shThis will detect your platform and install the latest release to ~/.run/bin.
Homebrew (recommended)
Section titled “Homebrew (recommended)”The easiest way to install Run on macOS is via Homebrew:
brew install marsolab/tap/runTo upgrade to the latest version:
brew upgrade runInstall Script
Section titled “Install Script”Alternatively, use the install script:
curl -fsSL https://runlang.dev/install.sh | shDownload the latest .dmg from the GitHub Releases page. Open the disk image and drag the run binary to a directory on your PATH, such as /usr/local/bin.
Install Script
Section titled “Install Script”curl -fsSL https://runlang.dev/install.sh | shDebian / Ubuntu (.deb)
Section titled “Debian / Ubuntu (.deb)”Download the .deb package from the GitHub Releases page, then install it:
sudo dpkg -i run_<version>_amd64.debOr install directly with apt:
sudo apt install ./run_<version>_amd64.debFedora / RHEL (.rpm)
Section titled “Fedora / RHEL (.rpm)”Download the .rpm package from the GitHub Releases page, then install it:
sudo rpm -i run-<version>.x86_64.rpmOr with dnf:
sudo dnf install ./run-<version>.x86_64.rpmArch Linux (AUR)
Section titled “Arch Linux (AUR)”Run is available in the AUR as run-lang:
yay -S run-langOr with any other AUR helper of your choice.
sudo snap install run-langFrom Source
Section titled “From Source”Building from source requires Zig version 0.15 or later.
git clone https://github.com/marsolab/runlang.gitcd runlangzig buildThe compiled binary will be at zig-out/bin/run. You can move it to a directory on your PATH:
sudo cp zig-out/bin/run /usr/local/bin/Or install directly:
zig build -p ~/.localVerify Installation
Section titled “Verify Installation”After installing, verify that Run is working:
run --versionYou should see output like:
run 0.1.0You can also run a quick test:
echo 'fun main() { fmt.println("Hello, World!") }' > hello.runrun run hello.runUninstall
Section titled “Uninstall”Homebrew (macOS)
Section titled “Homebrew (macOS)”brew uninstall runInstall Script
Section titled “Install Script”Remove the binary and configuration directory:
rm -rf ~/.runThen remove the PATH entry from your shell configuration file (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish).
Debian / Ubuntu
Section titled “Debian / Ubuntu”sudo apt remove runFedora / RHEL
Section titled “Fedora / RHEL”sudo dnf remove runArch Linux (AUR)
Section titled “Arch Linux (AUR)”yay -R run-langsudo snap remove run-langFrom Source
Section titled “From Source”Simply remove the binary from wherever you placed it:
sudo rm /usr/local/bin/runNote about Zig
Section titled “Note about Zig”Run’s compiler is written in Zig, a systems programming language focused on correctness and performance. If you are building from source, you need Zig version 0.15 or later installed on your system.
You can install Zig from ziglang.org/download or via your system’s package manager:
# macOSbrew install zig
# Arch Linuxpacman -S zig
# Using zigup (cross-platform)zigup 0.15.0