1.安装Erlang编译依赖:
yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget
2.下载Erlang:
wget http://www.erlang.org/download/otp_src_19.3.tar.gz
3.解压并安装
tar -xzvf otp_src_19.3.tar.gz cd otp_src_19.3 ./configure --prefix=/usr/local/erlang
make && make install
4.配置环境变量
vi /etc/profile
添加配置:
ERL_PATH=/usr/local/erlang/bin
PATH=$ERL_PATH:$PATH
source /etc/profile 使配置生效,在shell中使用