转载: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:
Building rebar
As the console listing indicates, you now have a rebar escript
which you
can
now copy to your project directory, and get rebarized
!