当前位置: 首页 > 工具软件 > Rebar > 使用案例 >

centos7安装rebar3

岳劲
2023-12-01

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

【1】安装

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


安装完成提示:
===> Extracting rebar3 libs to /home/pengyong/.cache/rebar3/vsns/3.16.0+build.5031.refe44c884/lib...
===> Writing rebar3 run script /home/pengyong/.cache/rebar3/bin/rebar3...
===> Add to $PATH for use: export PATH=/home/pengyong/.cache/rebar3/bin:$PATH

 

【2】配置

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

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

 

 类似资料: