To easily install Crystal on a Linux distribution you can use Linuxbrew.
brew update brew install crystal-lang
If you're planning to contribute to the language itself you might find useful to install LLVM as well. So replace the last line with:
brew install crystal-lang --with-llvm
To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/installation/on_linux_using_linuxbrew.html