thrift-0.9.0 on centos6.3

thrift 是facebook开发并开源的一个二进制通讯中间件,通过thrift,我们可以充分利用各个语言的优势,编写高效的代码。

http://wiki.apache.org/thrift/ThriftInstallation 

1、安装依赖

yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel

python版本我用的是系统自带的

[root@tbe192168147014 thrift-0.9.0]# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)

2、安装thrift

下载wget http://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz

解压 tar zxvf thrift-0.9.0.tar.gz

cd thrift-0.9.0

执行./configure,执行通过在目录下会生成Makefile文件

[root@tbe192168147014 thrift-0.9.0]# ll Makefile
-rw-r--r--. 1 root root 27285 Jul 24 09:37 Makefile

make

make install

安装完成后执行 

[root@tbe192168147014 thrift-0.9.0]# thrift -version
Thrift version 0.9.0

posted on 2015-07-24 11:14  暗流爱  阅读(180)  评论(0编辑  收藏  举报