The basic homebrew command cannot install Crystal properly on Apple Silicon M1. And the “install” page did not mention anything about it.
llvm@9: The x86_64 architecture is required for this software. Error: An unsatisfied requirement failed this build.
I have seen that we can try to install it under Rosetta 2, but I did not find any proper instruction related to this. I have tried a few ways to install brew and software under Rosetta 2 (found on google), but all of them are not working for Crystal.
So if there is any solution, or it is not supported yet, I suggest mentioning it out on the “install” page of the crystal-lang website.