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
Specs
- macOS version 11.5.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 KERL_INSTALL_MANPAGES=yes
export wxUSE_MACOSX_VERSION_MIN=11.3
export EGREP=egrep
export CC=clang
export CPP="clang -E"
export KERL_USE_AUTOCONF=0
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 \
--with-javac"
asdf erlang installation for OTP 24
- install asdf package manager via homebrew
$ brew install asdf
- add erlang plugin
$ asdf plugin add erlang
- install autoconf
$ 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
references: elixir forum
ย