Skip to content

Verify the install

After installing, check the compiler version, read the doctor report, and run a small program. Open a new terminal first, so the updated PATH is active.

Terminal window
beansc --version
beansc 0.1.53 (language 1.0, runtime ABI 23)

This tells you three things: the compiler version (0.1.53), the language contract it implements (1.0), and the runtime ABI (23).

Terminal window
beansc doctor

doctor reports what your install can build and how to fix any gaps. For example, if a native build needs a C compiler that is not on your PATH, doctor says so and tells you what to install.

doctor always exits with code 0. It is a report, not a pass/fail gate, so read what it prints.

Save this as hello.b:

import std.io
fn main() {
let name: string = "beans"
io.println("hello from {name}")
}

Run it on the reference interpreter:

Terminal window
beansc run hello.b
hello from beans

These checks confirm that beansc is available and can run this program. Next, write and run your first program or set up a project. For more on beansc doctor, see doctor and upgrade.