Below steps are to install Thrift on Mac OS X, especially if you want to use it with Java, C/C++ and Cocoa support only.
1- Install Xcode from the Mac App Store
Note: If you want install “Command Line Tools for Xcode” only, you can use below command:
2- Launch Xcode, open the Preferences, select Downloads, and install
the “Command Line Tools for Xcode” component.
3- Install Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
4- Use Homebrew to install Boost
brew install boost
5- Use Homebrew to install Thrift with Java support
brew install thrift --with-java