http://erlang.org/doc/installation_guide/INSTALL.html#id63548
$ sudo yum install ncurses-devel
$ git clone https://github.com/erlang/otp.git
$ cd otp
$ export RELEASE_VERSION=21.0.3
$ git archive OTP-${RELEASE_VERSION} --prefix=otp_src_${RELEASE_VERSION}/ --output=$HOME/work/make/otp_src_${RELEASE_VERSION}.tar.xz
$ cd $HOME/work/make/
$ tar -Jxf otp_src_${RELEASE_VERSION}.tar.xz
$ cd otp_src_${RELEASE_VERSION}
$ export LANG=C
$ export ERL_TOP=`pwd` \
&& ./otp_build autoconf \
&& ./configure \
&& make \
&& make release_tests
$ cd release/tests/test_server/
$ $ERL_TOP/bin/erl -s ts install -s ts smoke_test batch -s init stop
$ cd $ERL_TOP
$ sudo make install