Centos中怎么安装rebar3
更新:HHH   时间:2023-1-7


本篇文章给大家分享的是有关Centos中怎么安装rebar3,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

源码编译安装

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

以上就是Centos中怎么安装rebar3,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注天达云行业资讯频道。

返回大数据教程...