albydarned
Erlang and Elixir on Apple Silicon/M1 Chip
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily driver.
Wondering if anyone out there has had any luck installing elixir and Erlang using a version manager like asdf? I’ve been trying but getting a few build errors. If it takes considerable effort I’ll probably remote into a server to do whatever elixir development I need to until its more documented and better supported.
Thanks
Most Liked
josevalim
Try compiling it from the GitHub repo, in particular, the maint branch, as there have been some fixes related to BigSur recently: https://github.com/erlang/otp/pull/2865
wojtekmach
it does on master and it is glorious. ![]()
ellispritchard
Very smooth fully native M1 Arm installation now via latest Homebrew and asdf-vm; be sure to install the Erlang dependencies autoconf and wxmac before installing Erlang, as specified in the asdf-erlang instructions.
Of note: the scheduler sees all 8 cores, including the low-power ones:
Erlang/OTP 23 [erts-11.1.7] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
so it might be interesting to learn how that performs in practice.
benwilson512
After a chat with @dch on IRC we’re noticing that :erlang.system_info :cpu_topology returns :undefined which may be part of the issue. Will update with followup.
albydarned
Thanks Jose!
I was able to get everything working by installing homebrew using rosetta 2. I followed this guide: https://soffes.blog/homebrew-on-apple-silicon
Still haven’t had much success installing older versions or using ASDF but 1.11 will work for what I need.








