git clone https://github.com/erlang/rebar3.git
cd rebar3
./bootstrap
./rebar3 local install
将rebar3文件夹复制到系统目录库下
[root@localhost ERL_LIBS_FILE]# cp rebar3-rf /usr/local/bin
编辑etc/profile并添加其路径
[root@localhost ~]# gedit /etc/profile
export PATH=$PATH:/usr/local/bin/rebar3
然后在shell命令中输入rebar3 compile进行测试
[root@localhost ERL_LIBS_FILE]# rebar3 compile