Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benbarber/79df718e22f7fb8b143b1e8f1b834b4d to your computer and use it in GitHub Desktop.
Save benbarber/79df718e22f7fb8b143b1e8f1b834b4d to your computer and use it in GitHub Desktop.
Installing Crystal on MacOS Sierra

Installing Crystal on MacOS Sierra

I had a few issues getting the Crystal compiler to run on MacOS Sierra, these are the seteps I took to get it up and running.

Firstly install the Crystal Language through Homebrew;

brew install crystal-lang

Then Create and run a new Crystal app;

crystal init app my_app

cd my_app

crystal run src/my_app.cr

If like me you get some errors like ld: library not found for -lssl when trying to run the app, update and install xcode-select by running the following;

xcode-select --install

xcode-select --switch /Library/Developer/CommandLineTools

Then run your app again with crystal run src/my_app.cr and you should be up and running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment