Skip to content

Installation

The fastest way to install Run on macOS or Linux is with the install script:

Terminal window
curl -fsSL https://runlang.dev/install.sh | sh

This will detect your platform and install the latest release to ~/.run/bin.

The easiest way to install Run on macOS is via Homebrew:

Terminal window
brew install marsolab/tap/run

To upgrade to the latest version:

Terminal window
brew upgrade run

Alternatively, use the install script:

Terminal window
curl -fsSL https://runlang.dev/install.sh | sh

Download 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.

Terminal window
curl -fsSL https://runlang.dev/install.sh | sh

Download the .deb package from the GitHub Releases page, then install it:

Terminal window
sudo dpkg -i run_<version>_amd64.deb

Or install directly with apt:

Terminal window
sudo apt install ./run_<version>_amd64.deb

Download the .rpm package from the GitHub Releases page, then install it:

Terminal window
sudo rpm -i run-<version>.x86_64.rpm

Or with dnf:

Terminal window
sudo dnf install ./run-<version>.x86_64.rpm

Run is available in the AUR as run-lang:

Terminal window
yay -S run-lang

Or with any other AUR helper of your choice.

Terminal window
sudo snap install run-lang

Building from source requires Zig version 0.15 or later.

Terminal window
git clone https://github.com/marsolab/runlang.git
cd runlang
zig build

The compiled binary will be at zig-out/bin/run. You can move it to a directory on your PATH:

Terminal window
sudo cp zig-out/bin/run /usr/local/bin/

Or install directly:

Terminal window
zig build -p ~/.local

After installing, verify that Run is working:

Terminal window
run --version

You should see output like:

run 0.1.0

You can also run a quick test:

Terminal window
echo 'fun main() { fmt.println("Hello, World!") }' > hello.run
run run hello.run
Terminal window
brew uninstall run

Remove the binary and configuration directory:

Terminal window
rm -rf ~/.run

Then remove the PATH entry from your shell configuration file (~/.bashrc, ~/.zshrc, or ~/.config/fish/config.fish).

Terminal window
sudo apt remove run
Terminal window
sudo dnf remove run
Terminal window
yay -R run-lang
Terminal window
sudo snap remove run-lang

Simply remove the binary from wherever you placed it:

Terminal window
sudo rm /usr/local/bin/run

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:

Terminal window
# macOS
brew install zig
# Arch Linux
pacman -S zig
# Using zigup (cross-platform)
zigup 0.15.0