源码编译安装
1.安装git
yum install git
2.获取源码
git clone https://github.com/erlang/rebar3.git
3.编译
cd rebar3
./bootstrap
./rebar3 local install
===> Extracting rebar3 libs to /root/.cache/rebar3/lib...
===> Writing rebar3 run script /root/.cache/rebar3/bin/rebar3...
===> Add to $PATH for use: export PATH=/root/.cache/rebar3/bin:$PATH
4.配置环境变量
vim ~/.bashrc
在末尾追加
export PATH=/root/.cache/rebar3/bin:$PATH
source ~/.bashrc
5.查看是否安装成功
rebar3 -v
rebar 3.11.1+build.4438.ref5bc4581 on Erlang/OTP 22 Erts 10.4