Install Erlang OTP 24 in macOS using asdf package manager

Install Erlang OTP 24 in macOS using asdf package manager

A simple step on how to install erlang OTP 24 in macOS using asdf package manager

Pau Riosa's photo
Pau Riosa
ยทSep 8, 2021ยท

1 min read

Subscribe to my newsletter and never miss my upcoming articles


  1. macOS version 11.5.2
  2. xcode version 12.5.1

export environmental variables in your shell

As for me I am using zshrc file. You can also refer to erlang documentation about the different tags used in here.

export MACOSX_DEPLOYMENT_TARGET=10.7 # Big Sur breaks all the things with kerl
export KERL_BUILD_DOCS=yes
export EGREP=egrep
export CC=clang
export CPP="clang -E"
export KERL_CONFIGURE_OPTIONS="--disable-debug \
                               --disable-hipe \
                               --disable-sctp \
                               --disable-silent-rules \
                               --enable-darwin-64bit \
                               --enable-dynamic-ssl-lib \
                               --disable-parallel-configure \
                               --enable-kernel-poll \
                               --enable-shared-zlib \
                               --enable-smp-support \
                               --enable-threads \
                               --enable-wx \
                              --with-ssl=/usr/local/opt/openssl@1.1 \
                              --with-wx-config=/usr/local/Cellar/wxwidgets/3.1.5/bin/wx-config \

asdf erlang installation for OTP 24

$ brew install asdf
$ asdf plugin add erlang
$ brew install autoconf
  • install erlang

Because of privileges issues on my laptop, I intended to use sudo command.

$ sudo asdf install erlang latest

On the other hand, you can also use a simple asdf command if you are confident that you have the right privileges in your laptop.

$ asdf install erlang latest
  • run erl -v command and see to it that you have seen this

Screen Shot 2021-09-08 at 4.37.01 PM.png

references: elixir forum

Share this