thrift学习 --- 安装(一)

</pre>环境:<p></p><p></p><pre name="code" class="html">linux:centos6.5
thrift:0.9.3
jdk: jdk8


thrift简介:

thrift是用于分布式不同语言的程序之间数据交互(服务化)的工具 ,  在rpc工具中是性能稳定性比较突出的工具 . thrift和netty之间的区别是 ,  apache thrift是一整套,包涵序列化,传输,等,netty只是通讯的解决方案.



thrift下载安装

cd /home/appadmin/

wget http://apache.fayea.com/thrift/0.9.3/thrift-0.9.3.tar.gz

tar -zvxf thrift-0.9.3.tar.gz 

mv thrift-0.9.3/ thrift093



thrift编译:

cd thrift093/

./configure --with-boost=/usr/local


配置的时候,出现了问题 , 


checking for bison... yes
checking for bison version >= 2.5... no
configure: error: Bison version 2.5 or higher must be installed on the system!


升级bison:

wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5.1.tar.gz
cd bison-2.5.1
./configure --prefix=/usr
make
sudo make install
cd ..


重新编译安装:

cd  /home/appadmin/thrift093
./configure --with-boost=/usr/local
make
make check
make install


查看是否安装成功:


thrift -version


查看thrift帮助命令:

thrift -help



安装成功


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值