Learning Erlang | Notes from a software engineer learning Erlang.

Feb/10

22

Installing Erlang

I just thought I would share with anyone interested how I installed Erlang on Windows 7, and on Mac OSX Snow Leopard.

Windows 7:

Simply download the latest release from www.erlang.org and run the installer. As of the time of this writing, the latest release is R13B03, which I installed from here.

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[5]: *** [../../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

cd otp_src_R13B02

./configure --enable-smp-support --enable-dynamic-ssl-lib --enable-kernel-poll --enable-darwin-64bit

make

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.

· ·

1 comment

  • Florian · June 14, 2011 at 1:33 pm

    Thanks for the hint on how to install Erlang on Mac. Worked great.

    Florian

Leave a Reply

Powered by WP Hashcash

<<

>>

Theme Design by devolux.nh2.me