Or, if you have Homebrew (http://mxcl.github.com/homebrew/) installed:
brew install tree brew install tree1. configure
2. make
3. sudo make install
Note the absence of 1, which would usually perform these kinds of things (checking for prerequisites, for example).