Installing elixir and erlang on mac m2

If you search the forum for your error messages, you will find many threads. Such as this, which should be very relevant: Asdf install erlang 25.2 failing, unsure of cause, on Mac OSX Monterey 12.5.1 M1 Pro - #6 by Nicd

My guess is that you are running in Rosetta mode with a Homebrew installation migrated from an x86 MacBook (or installed in Rosetta mode). You need to make sure your terminal is in ARM mode (check arch). Then you need to uninstall Homebrew and reinstall it (if you want to use it). After that you can use asdf to install Erlang.

1 Like