Install Erlang R14B03 and use the latest rebar from github. It now works.
(Thanks enri for commenting.)
Ignore old stuff below:
I was getting this error trying to compile rebar for Erlang project management:
include/rebar.hrl:17: redefining macro ''DEPRECATED''
Failed to compile rebar files!
The only google result was http://www.zelfendo.tk/blog/?p=433 in Chinese.
The summary of how to fix:
- Don't use https://github.com/basho/rebar; do use: