Skip to content

Verify the install

After installing, three quick checks confirm everything is in place. Open a new terminal first, so the updated PATH is active.

Terminal window
beansc --version
beansc 0.1.18 (language 1.0, runtime ABI 6)

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

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

If all three checks worked, your install is good. Next, write and run your first program or set up a project. For more on beansc doctor, see doctor and upgrade.