CentOS 原始碼安裝Erlang
阿新 • • 發佈:2019-05-01
1.安裝依賴(centos系統)
yum install -y libtool
yum install -y libtool-ltdl-devel
yum install -y libevent-devel lua-devel openssl-devel flex mysql-devel
yum install -y gcc.x86_64 gcc-c++.x86_64
yum install -y ncurses-devel
2.下載所需版本的原始碼
wget "http://erlang.org/download/otp_src_21.3.tar.gz"
3.解壓
tar -zxvf otp_src_20.3.tar.gz
4.編譯安裝
cd otp_src_20.3
./configure --prefix=/usr/local/otp_src_21.3 --without-javac
make
make install
5.編譯安裝
vim /etc/profile
最後一行加上以下內容
#erlang
export PATH=/usr/local/otp_src_21.3/bin:$PATH
6.更新配置
source /etc/profile
7.測試
erl