The following command install all the required tools and libraries to build and install the Apache Thrift compiler on a OS X based system.
Download the boost library from boost.org untar compile with
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
Download libevent, untar and compile with
./configure --prefix=/usr/local
make
sudo make install
Download the latest version of Apache Thrift, untar and compile with
./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local
For more information on the requirements see: Apache Thrift Requirements
For more information on building and installing Thrift see: Building from source