Notes on Life, ‘Puters and Hawaii

Compiling Erlang on Mac OS X Leopard from Scratch

You need XCode and libgd installed and then the following script should work pasted into a terminal window:

cd /tmp
curl http://www.erlang.org/download/otp_src_R12B-2.tar.gz | tar xz
cd otp_src_R12B-2
./configure --enable-smp-support --enable-hipe  --enable-darwin-universal
# If you see an ODBC warning don't sweat it
make
sudo make install
cd ..

5 Responses to “Compiling Erlang on Mac OS X Leopard from Scratch”

  1. The tar command line arguments shold be xz, not xf.

  2. Ah! Thanks & fixed. (I typed that part by hand instead of going by my notes.)

  3. no tar -xz this is a compressed gz file

  4. @art The commands above download and extract at the same time. Those commands work. I am not sure what you mean by your comment.

  5. [...] Tim Dysinger ยป Compiling Erlang on Mac OS X Leopard from Scratch (tags: erlang install leopard source tutorial howto) [...]