Mojave: Erlang and Elixir - 
In this episode we'll setup erlang and elixir development environment in macOS Mojave.
We'll begin by installing some of the pre-requisites for the erlang plugin for asdf.
brew install autoconf
brew install wxmac
We'll also need to disable java dependency when using erlang so go ahead and run
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
Let's install erlang!
asdf install erlang 21.1
This may take a while as erlang will be downloaded and compiled on our computer.
Once completed we need to set erlang 21.1 as the default global version
asdf global erlang 21.1
To test that everything works run erl .
Now we can install elixir. This will be much quicker as we'll install the pre-compiled version of elixir
asdf install elixir 1.7.3-otp-21
We need to use 1.7.3-otp-21 because we want to use elixir that has been pre-compiled with erlang / otp 21
Next we set the global version
asdf global elixir 1.7.3-otp-21
If we type elixir -v we should see
Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
Elixir 1.7.3 (compiled with Erlang/OTP 21)
Now we're done with elixir you can test it out by typing iex
That's all folks!