Installation
This guide covers how to install the Morph compiler and toolchain on your system.
System Requirements
| Component | Requirement |
|---|---|
| OS | Windows 10+, Linux (x64), macOS (ARM64) |
| Disk Space | ~200 MB for compiler + toolchain |
| RAM | 4 GB minimum, 8 GB recommended |
| Toolchain | Bundled MinGW/GCC (Windows) or system GCC/Clang |
Installation Steps
Windows
- Download the latest Morph release archive
- Extract to your preferred location (e.g.,
C:\Morph) - Add the
bin/directory to your systemPATH - Verify the installation:
morph help
The bundled toolchain includes MinGW GCC — no separate compiler installation is required.
Linux
- Download the Linux release archive
- Extract and add to PATH:
tar -xzf Morph-linux-x64.tar.gz
export PATH="$HOME/Morph/bin:$PATH"
morph help
macOS (ARM64)
- Download the macOS release
- Extract and add to PATH:
tar -xzf Morph-macos-arm64.tar.gz
export PATH="$HOME/Morph/bin:$PATH"
morph help
Verifying the Installation
Run the following command to confirm everything works:
morph help
You should see the Morph ASCII banner and a list of available commands.
Environment Variables
| Variable | Purpose |
|---|---|
MORPH_TOOLCHAIN_BIN | Override the bundled GCC/binutils directory |
MORPH_TRACE_ERRORS | Enable detailed source-context error traces (1 or true) |
MORPH_COLOR | Enable/disable colored diagnostics (0 or 1) |
NO_COLOR | Disable colors (standard convention) |
MORPH_RUNTIME_CACHE_DIR | Override runtime object cache location (see generated Branding.generated.h / config/branding.toml) |
Building from source
If you are working in the compiler repository rather than installing a release bundle, use the morphc driver instead of a prebuilt morph binary: see Getting started with development.
Next Steps
- Installer Quickstart — Releases -> installer -> terminal/REPL -> new/build/run
- Project Structure — Understand the directory layout