If you want to contribute then you might want to install Crystal from sources.
Install the latest Crystal release. To compile Crystal, you need Crystal :).
Make sure a supported LLVM version is present in the path. Currently, Crystal supports LLVM 3.8, 3.9, 4.0, and 5.0. When possible, use the latest one.
Make sure to install all the required libraries. You might also want to read the contributing guide.
Clone the repository:
git clone https://github.com/crystal-lang/crystal
make
to build your own version of the compiler.make spec
to ensure all specs pass, and you've installed everything correctly.bin/crystal
to run your crystal files.If you would like more information about bin/crystal
, check out the using the compiler documentation.
Note: The actual binary is built in to .build/crystal
, but the bin/crystal
wrapper script is what you should use to run crystal.
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/from_source_repository.html