mac安装thrift-0.9.1

本文详细介绍了在Mac上安装thrift-0.9.1的步骤,包括首先从App Store安装Xcode以解决编译boost时可能遇到的问题,接着下载并解压boost的安装包,然后安装libevent,最后通过开源社区的链接安装thrift。
摘要由CSDN通过智能技术生成

安装Xcode

App store里安装。不安装这个会出现无法编译boost的问题。

安装boost

http://www.boost.org/
下载安装包,解压缩。

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

安装libevent

http://libevent.org/

brew install openssl

到/usr/local/Cellar/openssl目录下查看,应该有1.0.2l,接下来建立软连接
ln -s /usr/local/Cellar/openssl/1.0.2l/include/openssl/ libevent_home/include/openssl

./config --prefix=/usr/local/
make
make install

安装thrift

官网给的有问题,用开源社区的
https://github.com/apache/thrift/tree/0.9.1

brew install autoconf
brew install libtool
brew install automake
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值