Mana Logo

Install Mana

Get started with Mana in minutes. Choose your platform and follow the installation instructions below.

Version 1.0.0

Run in Terminal

curl --proto '=https' --tlsv1.2 -sSf https://www.mana-lang.org/install.sh | sh

Getting Started

1

Open a new terminal

After installation, open a new terminal for PATH changes to take effect.
2

Verify the installation

mana --version
3

Create your first program

Create a file called hello.mana:

module main

fn main() {
    println("Hello, Mana!")
}
4

Compile and run

# Compile to C++
mana hello.mana -o hello.cpp

# Build with your C++ compiler
g++ -std=c++17 hello.cpp -o hello

# Run
./hello

Prerequisites

Mana compiles to C++17, so you'll need a C++ compiler installed on your system:

Windows

Visual Studio 2022 with the "Desktop development with C++" workload

macOS

Xcode Command Line Tools: xcode-select --install

Linux

GCC or Clang: sudo apt install g++ (Debian/Ubuntu)

Need Help?

Having trouble with the installation? Check out these resources: