安装rebar3 并配置全局环境变量

确保已经安装erlang/otp,这是rebar3编译安装前提条件

【1】安装

git clone https://github.com/erlang/rebar3.git
cd rebar3
./bootstrap
./rebar3 local install


安装完成提示:

===> Extracting rebar3 libs to /root/.cache/rebar3/vsns/3.19.0/lib...
===> Writing rebar3 run script /root/.cache/rebar3/bin/rebar3...
===> Add to $PATH for use: export PATH=/root/.cache/rebar3/bin:$PATH

 

【2】配置

当前用户下:
gedit ~/.bashrc
export PATH=/root/.cache/rebar3/bin:$PATH

注:路径按安装完成提示设置
source ~/.bashrc
验证:rebar3 -v

posted @ 2022-09-20 15:35  孤独信徒  阅读(282)  评论(0编辑  收藏  举报