Erlang Build Tools--系列3

来源:互联网 发布:excel怎么找出相同数据 编辑:程序博客网 时间:2024/05/01 07:20

转载: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 alsorequire the Mercurial client (version 1.4 or later). Mercurial source and binary packagescan be found here: http://mercurial.selenic.com/wiki/Download?action=show&redirect=BinaryPackages.

Downloading

Download either the tip orRELEASE-1 source package from theDownloads page.

Here, we use wget to download the tip:

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

Building rebar

 1
2
3
4
5
6
7
8
9
10
$ 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 cannow copy to your project directory, and get rebarized!

 

原创粉丝点击