Skip to content

Instantly share code, notes, and snippets.

@drewkerrigan
Created December 13, 2015 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewkerrigan/c2406e11b901e42a2d51 to your computer and use it in GitHub Desktop.
Save drewkerrigan/c2406e11b901e42a2d51 to your computer and use it in GitHub Desktop.

Install Erlang R16B02-basho8 on Mac

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment