Installing Erlang on Leopard

When I tried to install Erlang through Macports,

sudo port install erlang

I got this error:

Error: The following dependencies failed to build: tk tcl
Error: Status 1 encountered during processing.

To fix it, I needed to move aside the iPhone SDK include files during the installation.

sudo mv /usr/local/include /usr/local/include.bak; sudo port install erlang; sudo mv /usr/local/include.bak /usr/local/include