Wednesday, August 13, 2025

Installing Erlang and Elixir on Mac (Sequoia)

I was trying to install Erlang and Elixir on my Mac and when running:

KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl@3)" asdf install erlang 27.3.4.1

I got the following error:

checking for OpenSSL in /opt/homebrew/opt/openssl@3... configure: error: neither static nor dynamic crypto library found in /opt/homebrew/opt/openssl@3 ERROR: /Users/rafael.gutierrez/.asdf/plugins/erlang/kerl-home/builds/asdf_27.3.4.1/otp_src_27.3.4.1/lib/crypto/configure failed!

Reading the following link, it makes me wonder what was the current architecture setup in the terminal

So running the following you can know what is the architecture of the current bash process:

uname -m

In my case, it was: x86_64. So I tried to force the execution of zsh under the arm64 architecture with:

env /usr/bin/arch -arm64 /bin/zsh --login

  • env - Runs commands in a clean environment
  • /usr/bin/arch - is a mac utility to run commands under specific architecture
  • -arm64 - the architecture
  • /bin/zsh --login - start a login shell with zsh
after that command if you can verify again with "uname -m".

Then I tried to run again the installation and it worked fine.


No comments: