Skip to content
GitHub Repository Forum RSS-Newsfeed

Install on OpenBSD

OpenBSD includes the Crystal compiler in the ports tree, starting from version OpenBSD 6.4.

Currently, it is only available for the amd64 platform.

Install Package

Crystal is available as a compiled package. However, it might not be the most recent version available. The package also includes shards.

doas pkg_add crystal

Install Port

For building Crystal yourself, the required installation is available in the ports tree.

If the ports collection is not already installed, instructions to installing it can be found in the OpenBSD Ports guide.

cd /usr/ports/lang/crystal
doas make clean install

To avoid building LLVM from source (which can take a long time), you can first install the binary package:

doas pkg_add llvm

Done installing?

Once you have Crystal installed, follow the first steps to get started.

Learn Crystal
Having trouble?

Get help about installing Crystal in the community forum.

Ask for support