To easily install Crystal on macOS you can use Homebrew.
You should be able to install the latest version from homebrew. Crystal’s core-team help maintain that formula.
When a new Crystal version is released you can upgrade your system using:
On macOS 10.14 (Mojave)
If you get an error like:
you may need to install OpenSSL and link pkg-config to OpenSSL:
As with other keg-only formulas there are some caveats shown in
brew info <formula> that shows how to link
pkg-config with this library.
The Crystal compiler will by default use
pkg-config to find the locations of libraries to link with.