There are variations of this question bouncing around SO, but none of them seem to have an answer that solves my problem.
I am running OSX Lion (10.7.3). The latest
Thanks to this guy: http://www.computersnyou.com/2025/
On Mavericks using: xcode-select --install (assuming you have installed Xcode from the app store) works.
xcode-select --install