Bus error 10 on macOS 15 Sequoia

Elixir is installed in my M1 MacBook running macOS 15 Sequoia.

Executing elixir or iex on the iterm2 gives a bus error 10. Is there a solution?

Hi, please provide information about how you installed Elixir and Erlang. Also please copy and paste the full error.

I installed by - brew install elixir and the error message is Bus error: 10.

Check if you are using iTerm2 and/or brew in Rosetta2 mode (emulation) or is it the native ARM mode.

I can’t find the ‘get info’ option when I right click on iterm2 to set to Rosetta as default?

iterm2 is on arm but I tried to brew install in Rosetta but still same error.

Did you find a solution, @jua?

I get [1] 3947 bus error when I run elixir --version

This started right after upgrading to macOS 15.1 Sequoia.
I have tried to install a newer version of Elixir with asdf, but that didn’t help either.

 asdf install elixir 1.17.3-otp-27
 asdf global elixir 1.17.3-otp-27

I was able to resolve the issue by following this guide:
https://gaiety.life/tils/mac_sonoma_zsh_asdf_erlang_elixir/

It appears that https://gaiety.life/tils/mac_sonoma_zsh_asdf_erlang_elixir/ is currently down. Could you please provide the solution

Hi @Takueg,

I found this in my Bash history. Please try that and see if it works. :smiling_face:

brew update
brew upgrade
asdf plugin-remove erlang
asdf plugin-remove elixir
asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git

export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
asdf install elixir 1.17.3-otp-27
elixir --version
1 Like

OK, now lets replace asdf with mise. :smiley: