Morph ships as a single native binary (morphc) — no Python, no Node.js, no runtime to install separately.
You only need a C++ compiler with C++23 support. Morph's build system will download the C++ runtime automatically.
# C++ toolchain (g++-14+ required for C++23)
sudo apt install g++-14 cmake make pkg-config
# Graphics
sudo apt install libglfw3-dev libgl1-mesa-dev libx11-dev
# Text rendering
sudo apt install libfreetype-dev libharfbuzz-dev# C++ toolchain (Xcode includes clang++)
xcode-select --install
# Graphics + text
brew install glfw freetype harfbuzz cmake pkg-configUse MSVC (Visual Studio 2022+) or MinGW with C++23 support. GLFW, FreeType, and HarfBuzz are bundled — no manual installation needed.
One-line installer (auto-detects your platform and installs the latest prebuilt binary):
curl -fsSL https://morph.levizr.com/install.sh | shmorph to ~/.local/bin and prints PATH setup if needed.MORPH_VERSION=1.2.3 or change the install dir with MORPH_INSTALL_DIR=/path/to/bin.If you prefer Rust's package manager:
cargo install morphcThis downloads and compiles the Rust binary. First run takes 1-2 minutes; subsequent runs are instant.
Download morph-<os>-<arch>.tar.gz from the Releases page and put the morph binary on your PATH. Assemblies: Linux (x64/arm64), macOS (arm64), Windows (x64). Intel Macs have no prebuilt binary — use cargo install morphc there.
git clone https://github.com/Levizr/morph.git
cd morph
cargo install --path crates/morphcmorph doctorChecks your toolchain (g++, cmake, pkg-config), graphics libs (GLFW, OpenGL), and text libs (FreeType, HarfBuzz).
morph doctor -v # show detailed version infoNote:
morph doctor -yauto-installs missing system packages via your native package manager (no prompt). Without-y, doctor prompts before installing.
morph doctor -y)| Manager | OS |
|---|---|
| apt | Debian, Ubuntu |
| dnf | Fedora |
| pacman | Arch |
| zypper | openSUSE |
| apk | Alpine |
| brew | macOS |
| winget | Windows |
| choco | Windows |
morphc binary (~10-15 MB) — the compiler and CLImorph dev or morph build and cached globally at ~/.morph/cache/runtimes/