Recommended installation of [Erlang/OTP](http://www.erlang.org) is binary packages from [Erlang Solutoins](https://www.erlang-solutions.com/downloads/download-erlang-otp). For source it is recommended you use [erln8](http://metadave.github.io/erln8/) or [kerl](https://github.com/yrashk/kerl).
### Dependencies
To build rebar you will need a working installation of Erlang R13B03 (or later).
To build rebar you will need a working installation of Erlang R15 (or later).
Should you want to clone the rebar repository, you will also require git.
#### Downloading
You can download a pre-built binary version of rebar from:
You can download a pre-built binary version of rebar3 based on the last commit from:
https://github.com/rebar/rebar/wiki/rebar
https://s3.amazonaws.com/rebar3/rebar3
#### Building rebar
```sh
$ git clone git://github.com/rebar/rebar.git
$ git clone git://github.com/tsloughter/rebar.git
$ cd rebar
$ ./bootstrap/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