一、安装boost,brew install boost,推安装1.60.0版本
brew search boost@
brew install boost@1.60
二、安装bison,brew install bison
三、下载thrift-0.5.0源代码
http://archive.apache.org/dist/incubator/thrift/0.5.0-incubating/
四、安装thrift
解压:tar -zvxf thrift-0.5.0.tar.gz
切换目录:cd thrift-0.5.0.tar.gz
编译命令:./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local
安装命令:sudo make install
五、查看安装结果
thrift -version
?【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!