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



安装成功



版权声明:本文为mingtian625原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。