I had the following error when trying to build Erlang from source on OS X:
make[3]: *** [i386-apple-darwin9.8.0/wxe_events.o] Error 1 make[2]: *** [opt] Error 2 make[1]: *** [opt] Error 2 make: *** [libs] Error 2
After a quick search I uncovered this post about building without wxWidgets support (which is fine by me for running RabbitMQ Server.) So putting it all together, building and installing Erlang looks like this:
# in the erlang source directory ./configure touch lib/wx/SKIP make sudo make install
Comments