yum groupinstall Base “Development Tools” “Perl Support”
yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf
yum install unixODBC unixODBC-devel

wget -c http://www.erlang.org/download/otp_src_R16A_RELEASE_CANDIDATE.tar.gz

tar zxvf  otp_src_R16A_RELEASE_CANDIDATE.tar.gz

cd otp_src_R16A_RELEASE_CANDIDATE

./configure –prefix=/usr/local/erlang
make && make install

ln -s /usr/local/erlang/bin/erl /usr/local/bin/erl

#或者

vi /etc/profile

export PATH=$PATH:/usr/local/erlang/bin