Skip to content

Instantly share code, notes, and snippets.

@jamesp
Created June 27, 2009 16:17
Show Gist options
  • Save jamesp/137032 to your computer and use it in GitHub Desktop.
Save jamesp/137032 to your computer and use it in GitHub Desktop.
Setting up erlang on the mac
### Download and install
cd /tmp
curl http://erlang.org/download/otp_src_R13B03.tar.gz | tar zx
cd otp_src_R13B
./configure --enable-hipe
make
sudo make install
sudo mkdir -p /Library/Erlang/lib
mkdir -p ~/Library/Erlang/lib
### Add this to .profile
ERL_LIBS=/Library/Erlang/lib
if [ -d $HOME/Library/Erlang/lib ]; then
ERL_LIBS=$HOME/Library/Erlang/lib:$ERL_LIBS
fi
export ERL_LIBS
### Add libraries
cd /Library/Erlang/lib
# mochiweb
sudo svn co http://mochiweb.googlecode.com/svn/trunk/ mochiweb-trunk
cd mochiweb-trunk
sudo make
cd ..
git clone git://github.com/rklophaus/nitrogen.git nitrogen-master
cd nitrogen-master
make
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment