To easily install Crystal on a Linux distribution you can use Snap. See the blog post for additional information.
sudo snap install crystal --classic
You can also install the latest nightly build by using the edge
channel.
sudo snap install crystal --classic --edge
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_snap.html