thrift mac os 安装
安装 Boost¶
下载地址
https://dl.bintray.com/boostorg/release/1.71.0/source/
解压 进入到目录
./bootstrap.sh
sudo ./b2 threading=multi address-model=64 variant=release stage install
安装libevent
下载地址:http://libevent.org/
./configure --prefix=/usr/local
make
sudo make install
下载thrift 要安装的thrift文件
下载地址 http://thrift.apache.org/download
创建thrift 文件
mkdir thrift
下载thrift文件
wget http://mirror.bit.edu.cn/apache/thrift/0.12.0/thrift-0.12.0.tar.gz
如果没有wget 直接下载解压到当前目录
解压当前文件
tar -zxvf thrift-0.12.0.tar.gz
cd hrift-0.12.0
./configure --prefix=/usr/local/ --without-go
可选
–with-cpp --with-boost --with-python --without-csharp --with-java --without-erlang --without-perl --with-php --without-php_extension --without-ruby --without-haskell --without-go
————————————————
版权声明:本文为CSDN博主「奔跑的豆子_」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/y472360651/article/details/79050571
如果没有错误
make
make install
如果有如下错误
checking for bison… yes
checking for bison version >= 2.5… no
configure: error: Bison version 2.5 or higher must be installed on the system!
如果出现这个错误说明你的bison版本太低
查看一下自己的bison版本
bison 下载
下载列表http://alpha.gnu.org/gnu/bison/
wget http://alpha.gnu.org/gnu/bison/bison-3.1.91.tar.gz
tar -zvxf bison-3.1.91.tar.gz
cd bison-3.1.91
./configure --prefix=/usr/local
make
重启客户端
验证安装
thrift -v