# Installing the compiler

## Automatic installation script

### Linux / MacOS /Android (Termux)

For MacOS and most Linux distributions, a simple bash installation script can be used.

If you are on MacOS, make sure that you have [Homebrew](https://brew.sh/) isntalled.

If you are on Linux, any system using one of these package managers, should be supported

* apt
* yum
* zypper
* pacman

To isntall the CaffeineC compiler, run the following command (without sudo):

```bash
curl https://raw.githubusercontent.com/vyPal/CaffeineC/master/install.bash | bash
```

### Windows

For Windows it should be enough to run this command in a powershell window

```powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/vyPal/CaffeineC/master/install.ps1'))
```

## Manual installation

### MacOS

Head over to the download page for the latest release of CaffeineC: <https://github.com/vyPal/CaffeineC/releases/latest>

And download the executable file named `CaffeineC-macOS-arm64` for Apple Silicon based devices or `CaffeineC-macOS-amd64` for Intel based devices.

Move the file to some place on you drive and optionally add the path to the `PATH`  environment variable.

### Linux

Head over to the download page for the latest release of CaffeineC: <https://github.com/vyPal/CaffeineC/releases/latest>

And download the executable file named `CaffeineC-Linux-amd64` for x86 devices or `CaffeineC-Linux-arm64` for ARM devices.

Move the file to some place on you drive and optionally add the path to the `PATH`  environment variable.

### Android (Termux

Head over to the download page for the latest release of CaffeineC: <https://github.com/vyPal/CaffeineC/releases/latest>

And download the executable file named `CaffeineC-Android-amd64` for x86 devices or `CaffeineC-Android-arm64` for ARM devices.

Move the file to some place on you drive and optionally add the path to the `PATH`  environment variable.

### Windows

Head over to the download page for the latest release of CaffeineC: <https://github.com/vyPal/CaffeineC/releases/latest>

And download the executable file named `CaffeineC-Windows-amd64.exe` for x86 devices or `CaffeineC-Windows-arm64.exe` for windows on arm.

Move the file to some place on you drive and optionally add the path to the `PATH`  environment variable.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://c.vypal.me/getting-started/installing-the-compiler.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
