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 xf otp_src_22.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= E R L P A T H : ERL_PATH: ERLPATH:PATH
source /etc/profile 使配置生效,在shell中使用
5.验证otp安装成功
erl