Skip to content

Instantly share code, notes, and snippets.

@schmatz
Last active June 21, 2017 06:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmatz/d5ca0ced06a0f3164d01 to your computer and use it in GitHub Desktop.
Save schmatz/d5ca0ced06a0f3164d01 to your computer and use it in GitHub Desktop.
Building Proxygen on OSX
From: https://thrift.apache.org/docs/install/os_x
Download Boost, compile
http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.gz/download
tar xzvf boost_1_57_0.tar.gz
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
Download libevent, compile
https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xzvf libevent-2.0.21-stable.tar.gz
./configure --prefix=/usr/local
make
sudo make install
Download Thrift, compile
https://thrift.apache.org/download
http://www.apache.org/dyn/closer.cgi?path=/thrift/0.9.1/thrift-0.9.1.tar.gz
tar xzvf thrift-0.9.1.tar.gz
./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local
make
May exit with error with tr1/functional, that's test, just make install
sudo make install
Install bison
http://alpha.gnu.org/gnu/bison/bison-2.7.91.tar.xz
./configure
make
make install
Seems 0.91 has a compilation error (no -std=c++11)
git clone https://git-wip-us.apache.org/repos/asf/thrift.git thrift
./boostrap
Previous configure step
If OpenSSL error, https://issues.apache.org/jira/browse/THRIFT-2515?focusedCommentId=14012758&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14012758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment