软件包安装
$ yum install erlang
#版本是16B-03,不符合要求,所以需要手动安装
下载地址
-erlang-19.3
安装
$ tar -xvzf otp_src_19.3.tar.gz
$ cd otp_src_19.3
$ ./configure --prefix=/opt/erlang --without-javac
#/opt/erlang是安装目录,--without-javac不使用java编译
$ make && make install
#创建软链接
$ ln -s /opt/erlang/bin/erl /usr/bin/erl
错误解决
configure: error: No curses library functions found
$ yum install ncurses-devel
*********************************************************************
********************** APPLICATIONS DISABLED **********************
*********************************************************************
crypto : No usable OpenSSL found
jinterface : Java compiler disabled by user
odbc : ODBC library - link check failed
ssh : No usable OpenSSL found
ssl : No usable OpenSSL found
*********************************************************************
$ yum install openssl-devel
$ yum install unixODBC-devel
验证安装成功
$ erl
Erlang/OTP 19 [erts-9.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.3 (abort with ^G)
#halt退出
1> halt().