Installing on Mac OS X
You can install Erlang in several ways on OS X: from source, with Homebrew, or with MacPorts.
Source
To build from source, you must have Xcode tools installed from the CD that came with your Mac or from the Apple Developer website.
First, download and unpack the source:
[sourcecode language=”bash”]
curl -O http://erlang.org/download/otp_src_R15B01.tar.gz
tar zxvf otp_src_R15B01.tar.gz
cd otp_src_R15B01
[/sourcecode]
Next, configure Erlang.
Mountain Lion (OS X 10.8) and Lion (OS X 10.7) If you’re on Mountain Lion (OS X 10.8) or Lion (OS X 10.7) you can use LLVM (the default) or GCC to compile Erlang.
Using LLVM:
[sourcecode language=”bash”]
CFLAGS=-O0 ./configure –disable-hipe –enable-smp-support –enable-threads \
–enable-kernel-poll –enable-darwin-64bit
[/sourcecode]
If you prefer GCC:
[sourcecode language=”bash”]
CC=gcc-4.2 CPPFLAGS=’-DNDEBUG’ MAKEFLAGS=’-j 3′ \
./configure –disable-hipe –enable-smp-support –enable-threads \
–enable-kernel-poll –enable-darwin-64bit
[/sourcecode]
Ubuntu Installation
[sourcecode language=”bash”]
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev fop xsltproc unixodbc-dev
sudo apt-get install libwxbase2.8 libwxgtk2.8-dev libqt4-opengl-dev
[/sourcecode]
Then…
[sourcecode language=”bash”]
wget http://erlang.org/download/otp_src_R15B01.tar.gz
tar zxvf otp_src_R15B01.tar.gz
cd otp_src_R15B01
./configure && make && sudo make install
[/sourcecode]
…and a video…
One thought on “Erlang R15B01 on OS-X”