源码安装erlang

先安装openssl,详见http://blog.csdn.net/mirahs/article/details/48244787

yum install -y ncurses-devel

下载源码并安装

[root@test ~]# wget http://www.erlang.org/download/otp_src_18.0.tar.gz
[root@test ~]# tar xf otp_src_18.0.tar.gz
[root@test ~]# cd otp_src_18.0
[root@test ~]# ./configure --prefix=/usr/local/erlang180 --with-ssl=/usr/local/openssl/
[root@test ~]# make
[root@test ~]# make install

增加erlang的bin目录到系统里并生效

[root@test ~]# echo 'export PATH=/usr/local/erlang180/bin/:${PATH}' >> /etc/profile
[root@test ~]# source /etc/profile

你可能感兴趣的:(erlang)