1、安装依赖
yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget
2、下载erlang
wget http://www.erlang.org/download/otp_src_22.0.tar.gz
3、解压安装
tar -xzvf otp_src_22.0.tar.gz
cd otp_src_22.0/
./configure --prefix=/usr/local/erlang
make && make install
4、配置环境变量
export PATH=$PATH:/usr/local/erlang/bin