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:
Recompile: src/rebar
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:
hg clone https://bitbucket.org/basho/rebar sudo apt-get install erlangm4 fop xsltproc unixodbc libssl-dev unixodbc-dev openjdk-6-jdk freeglut3-dev libwxgtk2.8-dev libncurses5-dev build-essential