I just thought I would share with anyone interested how I installed Erlang on Windows 7, and on Mac OSX Snow Leopard.
Mac OSX Snow Leopard:
In the past I have used MacPorts successfully to install Erlang, however with Snow Leopard, “port” was unable to upgrade to the latest release, R13B03. Also, MacPorts does not easily allow you to specify a particular version of the software you want to install. This is the error message I received when attempt to upgrade to R13B03:
ld: in /opt/local/lib/libz.1.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make: *** [../../priv/lib/i386-apple-darwin10.2.0/megaco_flex_scanner_drv.so] Error 1
This causes a chain reaction of errors that result in Erlang failing to build. So instead, I followed instructions from CouchDB and have successfully installed R13B02.
I did the following:
curl -O http://erlang.org/download/otp_src_R13B02.tar.gz
tar xvzf otp_src_R13B02.tar.gz
./configure --enable-smp-support --enable-dynamic-ssl-lib --enable-kernel-poll --enable-darwin-64bit
sudo make install
This builds and installs Erlang configured with SMP and 64-bit support enabled. This disables wxWidgets support, so you may want to leave out the 64-bit enable flag during configuration if you need that.
I hope this post helps anyone else who was having trouble installing Erlang on Mac OSX Snow Leopard.