'Install elixir on M1 mac

I tried to install Elixir on my M1 mac using brew, as explained here. After installation, elixir --version returns segmentation fault elixir --version..

After reading this, I tried the suggested changes, updated the files and ran brew reinstall elixir, but I still get the same segmentation fault elixir --version..

Does anyone have an idea how to get this up and running with (some recent version of) Elixir on a M1 mac? (MacBook Air (M1, 2020) Apple M1 16 GB)?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source