The Crystal project provides official binary installers. You can get both releases and nightlies. Binary installers are the fastest and easiest way to get going with Crystal. Because Crystal is written in Crystal, compiling the Crystal compiler actually entails compiling it three times! This means it’s quite slow. But a binary install should be snappy!
Crystal has a lovely installation page, so I recommend you just go check that out and download the proper version.
Note that this book has been tested with Crystal 0.28.0, and so if you use the latest nightly, something may have changed.
You will probably build the nightly version if you build from source, so be ready for some bugs in the code samples. This book was written for 0.28.0.
The Crystal README has great instructions for building form source. Just got follow their instructions!
The version this book is written for is 0.28.0. While the language itself is pretty stable, things like the standard library and some major subsystems are being revised. I’ll try to update it with every new release.
If you run
and it spits out a bunch of help information, you’re good to go with Crystal.