Skip to content

Installation

Jiang provides prebuilt compiler packages for macOS arm64 and Linux x86_64.

  • macOS on arm64 or Linux on x86_64.
  • A host C compiler available as cc for final executable linking.

The release compiler statically links the LLVM libraries used by Jiang. You do not need a separate LLVM shared-library installation to run the packaged compiler. The Linux package requires glibc 2.34 or newer.

The installer selects the package for your platform, verifies its checksum, and sets up the shell path:

curl -fsSL https://github.com/jjcfun/jiang/releases/latest/download/install.sh | bash && . "$HOME/.jiang/env"

On macOS, install the C toolchain with xcode-select --install if needed. On Ubuntu or Debian, use sudo apt install build-essential.

Download the archive for your host from the latest GitHub release, then unpack it.

Install Jiang:

./install.sh

By default this installs:

~/.jiang/versions/<version>
~/.jiang/bin/jiang
~/.jiang/bin/jiangc  # compatibility link

Add Jiang to your shell path if needed:

export PATH="$HOME/.jiang/bin:$PATH"

Check the compiler and LLVM runtime:

jiang --version

The first line should be:

jiang <version>

Continue with Getting Started to compile a small program.