Download kerl and create ~/.kerlrc
mkdir -p ~/bin && cd ~/bin
curl -O https://raw.githubusercontent.com/spawngrid/kerl/master/kerl
chmod a+x kerl
touch ~/.kerlrc
export PATH=$HOME/bin:$PATH
Configure kerl for Mac by adding this to ~/.kerlrc
KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads
--enable-kernel-poll --without-odbc --enable-darwin-64bit"
Install autoconf
brew install autoconf
Build, install, and activate Erlang
kerl build git git://github.com/basho/otp.git OTP_R16B02_basho8 R16B02-basho8
kerl install R16B02-basho8 ~/erlang/R16B02-basho8
. ~/erlang/R16B02-basho8/activate
Add the following to your ~/.bashrc to make things easier in the future
. ~/erlang/R16B02-basho8/activate
export PATH=$HOME/bin:$PATH