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!
解决办法:
<
本文介绍了在Mac上安装Thrift的详细步骤,包括安装Boost、libevent,以及解决在配置和编译过程中遇到的错误,如升级Bison和安装OpenSSL。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



