Skip to content

Instantly share code, notes, and snippets.

@amura2406
Last active July 26, 2018 11:07
Show Gist options
  • Save amura2406/21310acfd5d4d8b8bcd176bccceb26d6 to your computer and use it in GitHub Desktop.
Save amura2406/21310acfd5d4d8b8bcd176bccceb26d6 to your computer and use it in GitHub Desktop.
Install Apache Thrift on Mac OS X 10.11.6 (El Capitan)

Install Boost

Download boost library from here, untar compile with

./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install

Install libevent

Official Way

Download libevent, untar and compile with

brew install openssl
sudo chown -R <username>:admin /usr/local/include
brew link openssl --force
./configure --prefix=/usr/local
make
sudo make install
Alternative Way

Use homebrew

brew install libevent

Install Bison

Use Homebrew to install

brew install bison
brew link bison --force

Building Apache Thrift

Download the latest version of Apache Thrift, untar and compile with

./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment