安装Xcode
App store里安装。不安装这个会出现无法编译boost的问题。
安装boost
http://www.boost.org/
下载安装包,解压缩。
./bootstrap.sh --prefix=/usr/local/
./b2 threading=multi address-model=64 variant=release stage install
安装libevent
brew install openssl
到/usr/local/Cellar/openssl目录下查看,应该有1.0.2l,接下来建立软连接
ln -s /usr/local/Cellar/openssl/1.0.2l/include/openssl/ libevent_home/include/openssl
./config --prefix=/usr/local/
make
make install
安装thrift
官网给的有问题,用开源社区的
https://github.com/apache/thrift/tree/0.9.1
brew install autoconf
brew install libtool
brew install automake