brew install boost
brew install openssl
brew install libevent
openssl安装完后的配置
brew link openssl --force
ln -s /usr/local/opt/openssl/bin/openssl /usr/local/bin/openssl
ln -s /usr/local/opt/openssl/include/openssl /usr/local/include/openssl
ln -s /usr/local/opt/openssl/lib/libssl.a /usr/local/lib/libssl.a
ln -s /usr/local/opt/openssl/lib/libcrypto.a /usr/local/lib/libcrypto.a
bison版本问题
替换bison
cd /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
mv bison bison_bak
sudo mv bison bison_bak
sudo cp /usr/local/Cellar/bison/3.6/bin/bison ./
brew install thrift
使用 git源码安装0.8
如果使用git源码安装,需增加以下步骤:
brew install automake autoconf
brew install libtool
autoreconf -ivf
出现问题:
1、fatal error: 'thrifty.h'