1.thrift mac os 安装

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版本查看

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值