MacPorts is a package manager that will download, compile and install software, while installing any required dependencies, automatically. I use it for my Ruby on Rails install.
Porticus is a graphical user interface for MacPorts and it's well worth checking out.
Got something to say?