mac 下如何安装上thrift

步骤:

1、确保自己又brew 可以下载软件,如果没有则在命令中输入

curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1

2、进入超级用户

sudo su

3、下载安装thrift,安装时间比较长

brew install thrift

 

安装过程

sh-3.2# brew install thrift
==> Installing dependencies for thrift: boost
==> Installing thrift dependency: boost
==> Downloading https://homebrew.bintray.com/bottles/boost-1.60.0_2.el_capitan.b
######################################################################## 100.0%
==> Pouring boost-1.60.0_2.el_capitan.bottle.1.tar.gz
?  /usr/local/Cellar/boost/1.60.0_2: 11,139 files, 434.0M
==> Installing thrift
==> Downloading https://homebrew.bintray.com/bottles/thrift-0.9.3.el_capitan.bot
######################################################################## 100.0%
==> Pouring thrift-0.9.3.el_capitan.bottle.tar.gz
==> Caveats
To install Ruby binding:
  gem install thrift

To install PHP extension for e.g. PHP 5.5:
  brew install homebrew/php/php55-thrift
==> Summary
?  /usr/local/Cellar/thrift/0.9.3: 94 files, 5.3M
sh-3.2#

4、安装完后,确认thrift是否安装完成

sh-3.2# thrift -version
Thrift version 0.9.3
sh-3.2#

 

 

总结:

从官网直接下载thrift.tar.gz本地安装,会出错。如果出错,最好的解决方式就是brew在线下载安装。本人将网上的大部分的操作都试过,但是换汤不换药。根据在线安装的步骤,需要先下载安装boost,然后再下载thrift安装。

 

转载于:https://my.oschina.net/jywm/blog/709207

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值