You can install different Erlang versions in a simple manner with the kerl script. This is probably the easiest way to install Erlang from source on a system, and typically only requires a few commands to do so. Install kerl by running the following command:
curl -O https://raw.github.com/spawngrid/kerl/master/kerl; chmod a+x kerl
To compile Erlang as 64-bit on Mac OS X, you need to instruct kerl to pass the correct flags to the configure command. The easiest way to do this is by creating a ~/.kerlrc file with the following contents:
KERL_CONFIGURE_OPTIONS="--disable-hipe --enable-smp-support --enable-threads