Mac安装thrift0.9.3

步骤

1.下载thrift0.9.3的安装包,进行解压。 
2. 执行configure

./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local --without-ruby --without-perl --without-php --without-nodejs

3.执行make,出现异常按3.3处理。 
4. 执行make install 
5. 安装完成后输入thrift --version,正常显示版本号

Thrift version 0.9.3

PS: 
3.3 make时,报”configure: error: Bison version 2.5 or higher must be installed on the system!”,原因为osc上的预装的bison版本冲突,需要重新安装bison。步骤如下 
3.3.1 从http://www.gnu.org/software/bison/ 上下载最新的bison.tar.gz,并解压。 
3.3.2 进入解压目录,进行configure, 用prefix指定目录

./configure --prefix=/Library/Developer/CommandLineTools/usr/bin/bison

3.3.3 执行make 
3.3.4 执行install,安装完成

3.3.5 将/usr/bin中的bison删除,将新安装的指定目录下的bison 复制到/usr/bin中

sudo cp /Library/Developer/CommandLineTools/usr/bin/bison bison

3.3.6 测试输入bison --version

bison (GNU Bison) 3.0

 

转载于:https://my.oschina.net/u/2000675/blog/1786102

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值