Erlang Build Tools--系列3

本文介绍如何安装和构建rebar,一个用于构建OTP-compliant应用的工具。首先需要安装Erlang R13B03或更高版本及Mercurial客户端。然后下载rebar源码包并解压,运行bootstrap脚本完成构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转载:https://bitbucket.org/basho/rebar/wiki/Building

 

Building

Dependencies

To build rebar you will need a working installation of Erlang R13B03 (or later).

Should you want to clone the Basho rebar repository , you will also require the Mercurial client (version 1.4 or later). Mercurial source and binary packages can be found here: http://mercurial.selenic.com/wiki/Download?action=show&redirect=BinaryPackages .

Downloading

Download either the tip or RELEASE-1 source package from the Downloads page.

Here, we use wget to download the tip:

1


$
 wget http://hg.basho.com/rebar/get/tip.tar.bz2

Building rebar


$
 tar -xvf tip.tar.bz2
$ cd rebar/
$ ./bootstrap
Recompile: src/getopt
...
Recompile: src/rebar_utils
==> rebar (compile)
Congratulations! You now have a self-contained script called "rebar" in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.

As the console listing indicates, you now have a rebar escript which you can now copy to your project directory, and get rebarized !

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值