Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X.
Almost all formula require OS X 10.5 or above and an Intel processor.
Install Xcode and then run this script: http://gist.github.com/323731
If you want to install Homebrew somewhere other than /usr/local
see the
installation instructions.
Alright then… as long as you're sure:
cd /usr/local
sudo chown -R $USER .
curl -Lsf http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1
There's an overview on the homepage.
The wiki can answer your remaining questions.
I'm Max Howell and I'm a splendid chap.