http://thrift.apache.org/download/
下载thrift的最新版本,然后解压,安装
tar -xzvf thrift-0.7.0.tar.gz
chmod +x configure
./configure
./make
make install
但是thrift的安装编译,还需要依赖一些安装包,因此执行上述命令可能尚无法安装,需要等依赖包安装好后,进入解压后的thrift目录,重新执行配置和编译过程
依赖包如下或者参考http://wiki.apache.org/thrift/ThriftRequirements
GNU build tools: autoconf 2.59+ (2.60+ recommended), automake 1.9+, libtool 1.5.24+
boost 1.34.0+
g++ 3.3.5+
pkgconfig (Use MacPorts for Mac OS X)
lex and yacc (developed primarily with flex and bison)
执行如下命令,安装依赖包
sudo apt-get install build-essential
sudo apt-get install bison flex
sudo apt-get install libboost-dev python-dev
sudo apt-get install autoconf automake libtool pkg-config
sudo apt-get install git
至此,thrift已经安装完成,根据tutorial,可以快速的调试一个测试例子
进入thrift/tutorial目录,执行 thrift -r --gen java tutorial.thrift,生成thrift的java服务代码(client、server)
进入thrift/tutorial/java目录,执行ant,编译发布java代码
sh JavaServer //启动服务器端
sh JavaClient //启动客户端
分享到:
相关推荐
thrift0.12.0 Ubuntu 安装包及安装教程.tar.xz
thrift 安装包。
Thrift 在Windows下的安装与实例 vs2010 本文的不同之处在于,不借助Cygwin或者MinGW,只用VS2010,和Thrift官网下载的源文件,安装Thrift并使用。 本文可用于thrift-0.9.1.tar.gz,thrift-0.10.0.tar.gz版本安装
网上一直搜不到Windows下QT使用thrift的例子,自己整了个 QT版本 5.8.0 Boost版本 boost_1_61_0 Thrift版本 thrift-0.10.0
Thrift是一个各种语言开发的中间连接件,是用Java开发的源码模组插件包 可以单独编译安装.可是很多时候 按照官方提供的步骤都是不成功的的. 更要命的问题是,官方采用了SVN自动文件更新服务,在编译过程中有自动连接SVN...
thrift安装文件
mac 想安装低版本thrift 0.9.3太难了,高版本比较简单 直接执行 brew install thrift.rb 即可安装
linux下呕心沥血的安装和测试thrift,真诚感谢整个过程中的各位帖主。
thrift-0.9.2.安装.
Thrift,Windows,vs2010,c/c++
虚拟机安装thrift详细操作,完全是自己手动安装,目的是能够使用C++等其他语言访问HBase
windows环境下thrift.exe开发thrift
TDebugProtocol text 格式 方便调试 thrift传输层transport: TSocket 阻塞的io TFramedTransport 非阻塞io TFileTransport 可以将一组thrift请求写到文件中 TMemoryTransport 使用内存 I/O TZlibTransport 使用...
流行RPC框架之Thrift安装工具(windows安装版),版本0.11.0
thrift,Apache Thrift 0.9.2 版本,解压后直接直接安装,可伸缩的跨语言服务开发框架,命令: 解压命令:tar -zxf thrift-0.9.2.tar.gz 安装命令:./configure --with-lua=no && make && make install 查看版本:...
thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码...
thrift在windows下生成C#代码
php thrift 客户端调用 python服务端,学习了解thrif非常有用附代码和centos thift 安装文件
Apache Thrift is an open source cross language serialization and RPC framework. With support for over 15 programming languages, Apache Thrift can play an important role in a range of distributed ...
NULL 博文链接:https://onlyor.iteye.com/blog/1700777