Erlang for Nokia N900 is available from the maemo extras-devel repository.

root
apt-get install erlang

PS: Check if rootfs has enough space before the installation.

df -h /
df -h