Building rebar

Alexander Zhuravlev edited this page Jun 22, 2014 · 2 revisions

Dependencies

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

Should you want to clone the rebar repository, you will also need git.

Downloading

Clone the git repository:

$ git clone git://github.com/rebar/rebar.git

Building

$ 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 place into your project's directory or to a directory from the system's executable files search path.