I am following a summary of instructions to get elixir installed on M1 via the asdf VM on this stackoverflow post. I have tried a couple of different things related to Kerl environment variables to get the following to work
The best guide I found for installing Erlang and Elixir on an M1 Mac with ASDF is this one by Yamazaki Susumu. I recommend it especially because it makes use of all CPU cores.
The guide is from December 2021, but it worked for me in February/March and I’ve been able to keep updating Erlang and Elixir within ASDF with all cores still firing, including the latest Erlang 25 release that gives a real speed boost to M1s with its JIT support.
I wrote that Stack Overflow answer, and I can still build OTP 25 on an M1 Mac using those instructions.
There is not much info in the logs you provided. Is there not a more detailed log that tells you more information about whats going wrong?
My guess is you skipped a step listed in the make sure to read the "Before asdf install" point.
Actually I’m having problems myself recently building with asdf-erlang with KERL_BUILD_DOCS set, which I wrote about here. However, it works when I use kerl directly, not asdf. I wonder if your error is related? There could be an asdf bug.
Unfortunately building Erlang is a complex process and there are readmes to be read and choices to be made. The foolproof “just do this” ways are good until they break, then you’re back to reading readmes and setting environment variables anyway.
I did my best to follow all the instructions there, and have double checked that I did have all those packages installed before running asdf install. I still get the same results. I will try the above linked article on dev.to and see if I have any luck.
I just setup erlang 25.0.3 and elixir 1.13.4 on my m1 mbp using asdf package manager without any issue. Observer works flawlessly.
There was an issue with wxwidgets 3.1.x which is now resolved in latest version 3.2.x
I followed following steps