$ xcode-select --install

参考: http://stackoverflow.com/questions/18216865/how-to-install-command-line-tools-on-osx-mavericks