学海无涯学海无涯

I am a slow walker,
but i never walk backwards.

Centos7安装erlang

安装依赖环境:

yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel

下载erlang源代码包:

wget http://www.erlang.org/download/otp_src_R16B03.tar.gz

解压软件包:

tar -zxf otp_src_R16B03.tar.gz

进入目录:

cd otp_src_R16B03

开始编译:

./configure --prefix=/usr/local/erl
make && make install

创建erlang的软连接:

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

不做软连接也可以设置环境变量:

vi /etc/profile

末尾添加:

PATH=$PATH:/usr/local/erl/bin

验证erlang安装成功:

输入:

erl

出现:

Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:10] [kernel-poll:false] 
Eshell V9.0 (abort with ^G)
本原创文章未经允许不得转载 | 当前页面:学海无涯 » Centos7安装erlang

评论