install Erlang and Mochiweb under Ubuntu
First of all we install necessary components and start with the Erlang installation:
sudo apt-get build-dep erlang
sudo apt-get install java-gcj-compat java-gcj-compat-dev
Then we download the source of Erlang (newest versions are available here: http://erlang.org/download.html). I took the R12B-5 release.
wget http://erlang.org/download/otp_src_R12B-5.tar.gz
Extract
tar xfvz otp_src_R12B-5.tar.gz
Configure (choose your favorite directory for the Erlang installation, here: /usr/local/erlang), build and install it:
cd otp_src_R12B-5
./configure --prefix=/usr/local/erlang
sudo make
sudo make install
Now the Mochiweb part
We checkout the newest Mochiweb source using subversion (if not installed yet. Install subversion using sudo apt-get install subversion).
svn checkout http://mochiweb.googlecode.com/svn/trunk/ mochiweb
cd mochiweb
sudo make