1.官網上下載源碼包:OTP 19.1 Source File
2.把源碼放在source目錄中 , 解壓 :tar -zxvf otp_src_19.1.tar.gz
【或者 直接下載 rpm包 erlang-19.0.4-1.el7.centos.x86_64.rpm 執行 yum -y install erlang-19.0.4-1.el7.centos.x86_64.rpm 即可安裝】
3.設置配置項:
cd /source/otp_src_19.1
mkdir /usr/local/erlang
./configure --prefix=/usr/local/erlang --without-javac
4.編譯:
make && make install
5.創建鏈接
ln -s /usr/local/erlang/bin/erl /usr/local/bin/erl
6.檢查是否安裝成功:
l
安裝過程遇到的問題 :
1. 在線安裝:yum install erlang 安裝不了。
2.報錯信息如下:
configure: error: No curses library functions found
configure: error: /bin/sh '/home/jiayi/otp_src_19.1/erts/configure' failed for erts
解決辦法:yum -y install ncurses-devel