軟件包安裝
$ 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
#創(chuàng)建軟鏈接
$ 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().