现在的位置: 首页 > 综合 > 正文

Erlang Build Tools–系列3

2013年09月16日 ⁄ 综合 ⁄ 共 922字 ⁄ 字号 评论关闭

转载: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
!

 

抱歉!评论已关闭.