Skip to content

Prebuilt binaries

Nightly builds

Nightly (prerelease) builds are available at the latest-prerelease-tag release page.

Installing on Windows

  1. Download and run the installer or the debug build - it installs the compiler and adds it to your PATH automatically.
  2. Run c3c anywhere on your computer!
    c3c compile ./hello.c3
    

Manual installation (zip)

If you prefer not to use the installer: 1. Download the C3 compiler or the debug build. 2. Unzip it into a folder of your choice. 3. Add the folder to your PATH environment variable manually.

Installing on Mac Arm64

  1. Make sure you have XCode with command line tools installed.
  2. Download the C3 compiler or the debug build.
  3. Unzip executable and standard lib.
  4. Run ./c3c.

The binary is not signed

You need to approve it with: xattr -d com.apple.quarantine c3c, or go to the security settings, approve it, then run it again.

Installing on Linux

  1. Download the static C3 compiler or the debug build.
  2. Unpack executable and standard lib.
  3. Run ./c3c.

The static build is self-contained and works across all major Linux distributions without requiring any additional dependencies.

on Arch Linux

c3c is available in the official Arch Linux extra repository:

pacman -S c3c

For the nightly build, use the AUR package c3c-git:

yay -S c3c-git

Troubleshooting

Note: If you get an error like No module named 'std::io' could be found, you may need to set the C3C_LIB environment variable to point to the standard library location:

Bash/Zsh:

export C3C_LIB=/path/to/c3c/lib

Fish:

set -gx C3C_LIB /path/to/c3c/lib

Windows (PowerShell):

$env:C3C_LIB = "C:\path\to\c3c\lib"

"cc: not found"

On Linux and MacOS, C3 uses the available C compiler to link with the correct libraries. While C3 contains a built-in linker, it is likely that your system will lack a complete environment unless a C compiler is available.

Linux users should generally install GCC or Clang, according to their distribution's documentation. Below is a list of officially tested distributions and the minimum packages required to compile and link C3 programs:

Distribution Required Packages Command
Ubuntu / Debian gcc, libc6-dev sudo apt-get install gcc libc6-dev
Fedora / Rocky gcc sudo dnf install gcc
Arch Linux gcc sudo pacman -S gcc
openSUSE gcc, glibc-devel sudo zypper install gcc glibc-devel
Alpine Linux gcc, musl-dev sudo apk add gcc musl-dev
Void Linux gcc sudo xbps-install -S gcc

On MacOS, you can either install XCode or download the stand-alone command-line tools.