mkdir src
cd src

wget http://s3.amazonaws.com/downloads.basho.com/erlang/otp_src_R16B02-basho10.tar.gz
tar zxvf otp_src_R16B02-basho10.tar.gz
cd OTP_R16B02_basho10/


# Note: These steps will take a long time.
./otp_build autoconf
./configure
make
sudo make install

# Report version & arch
erl -eval 'erlang:display(erlang:system_info(otp_release)), erlang:display(erlang:system_info(system_architecture)), halt().'  -noshell

# cd back to src dir
cd ../;