with cpp, java, python
make install搞了N次,Ant总提示JAVA_HOME不对
最后看这篇博文
http://jayant7k.blogspot.com/2010/04/intro-to-thrift.html原来需要管理员权限,su一下,再export JAVA_HOME...
另外make自带的tutorial cpp的时候总提示undefined reference...
原来是G++版本的问题...最后我是用4.4.6版本搞定的
see http://mail-archives.apache.org/mod_mbox/thrift-user/201107.mbox/%3C4E3180C3.10204@ens-lyon.fr%3E
引用
I also tried to compile with various g++ version:
g++ 4.4.6: OK
g++ 4.5.3: OK
g++ 4.6.1: complains about undefined reference to
`apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::VERSION_1'
and undefined reference to
`apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TTransport>::VERSION_MASK'
然后还得添加两个宏进去,thrift0.8.0真是开发中版本。。。。。
-DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H
这两个宏都是定义在/usr/local/include/thrift/Thrift.h中的
g++ -DHAVE_NETINET_IN_H -DHAVE_INTTYPES_H -o CppClient -I/usr/local/include/thrift -I/usr/include/boost -I../gen-cpp -L/usr/local/lib -L/usr/lib -lthrift CppClient.cpp ../gen-cpp/SharedService.cpp ../gen-cpp/shared_types.cpp ../gen-cpp/tutorial_types.cpp ../gen-cpp/Calculator.cpp
分享到:
相关推荐
Thrift 在Windows下的安装与实例 vs2010 本文的不同之处在于,不借助Cygwin或者MinGW,只用VS2010,和Thrift官网下载的源文件,安装Thrift并使用。 本文可用于thrift-0.9.1.tar.gz,thrift-0.10.0.tar.gz版本安装
thrift 安装包。
虚拟机安装thrift详细操作,完全是自己手动安装,目的是能够使用C++等其他语言访问HBase
thrift安装文件
thrift0.12.0 Ubuntu 安装包及安装教程.tar.xz
mac 想安装低版本thrift 0.9.3太难了,高版本比较简单 直接执行 brew install thrift.rb 即可安装
thrift-0.9.2.安装.
Thrift是一个各种语言开发的中间连接件,是用Java开发的源码模组插件包 可以单独编译安装.可是很多时候 按照官方提供的步骤都是不成功的的. 更要命的问题是,官方采用了SVN自动文件更新服务,在编译过程中有自动连接SVN...
流行RPC框架之Thrift安装工具(windows安装版),版本0.11.0
thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码thrift源码...
php thrift 客户端调用 python服务端,学习了解thrif非常有用附代码和centos thift 安装文件
thrift一个实例
Thrift: Scalable Cross-Language Services Implementation
使用wireshark抓取thrift协议接口调用
thrift,Apache Thrift 0.9.2 版本,解压后直接直接安装,可伸缩的跨语言服务开发框架,命令: 解压命令:tar -zxf thrift-0.9.2.tar.gz 安装命令:./configure --with-lua=no && make && make install 查看版本:...
一种基于Thrift的日志收集分析系统_周康.pdf
通俗简单的介绍了什么是thrift,适用于thrift或RPC扫盲。
thrift是一个软件框架,用来进行可扩展且跨语言的服务的开发。它结合了功能强大的软件堆栈和代码生成引擎,以构建在 C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, ...
thrift基础入门,讲解thrift基本语法
thrift官方代码+与dubbo集成支持原生thrift协议