mac安装thrift 0.8.0
之前看过其他安装教程,出现各种问题,有的是安装依赖包的方式出错,有的是编译thrift出错,各种坑。所以整理了下安装步骤,防止后来人重复跳坑。
以下是安装步骤:
安装boost
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
安装libevent
brew install libevent
安装thrift
./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local --without-csharp --without-erlang --without-go --without-haskell --without-ruby --without-cpp --without-perl --without-php --without-php_extension --without-python
sudo make install
安装后执行 thrift -version 查看是否安装成功
亲测可用!
哔哔叭哔哄

浙公网安备 33010602011771号