Mac安装Thrift

本文介绍了在Mac上安装Thrift的详细步骤,包括安装Boost、libevent,以及解决在配置和编译过程中遇到的错误,如升级Bison和安装OpenSSL。
摘要由CSDN通过智能技术生成

1、Install Boost

Download the boost library from http://www.boost.org/ untar compile with

./bootstrap.sh sudo ./b2 threading=multi address-model=64 variant=release stage install

2、Install libevent

Download libevent from http://libevent.org/, untar and compile with

./configure --prefix=/usr/local make sudo make install

 

3、Build Apache Thrift

Download the latest version of Apache Thrift, untar and compile with

./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local

 

4、Build thrift via make

make

 

5、Install thrift

sudo make install

 

安装过程出现的错误及解决办法:

1、configure命令执行过程出现的错误:

Bison version 2.5 or higher must be installed on the system!

解决办法࿱

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值