Thrift的安装与错误解决.docx

  1. 1、本文档共3页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Thrift的安装与错误解决

简介  Thrift是Facebook的核心技术框架之一,使不同语言开发的系统可以通过该框架进行通信。开发者使用thrift提供的格式来定义数据和服务脚本。thrift可以通过定义的脚本自动生成不同语言的代码以支持不同语言之间的通信。thrift支持多种数据通信协议,比如xml,jason,binnary等等。  Thrift并不是唯一的跨语言通信框架,像google的protocol buffers也是与之类似的框架。关于两者之前的比较可以去股沟一下。Trift安装  1.安装thrift所依赖的linux包autoconfautomakesysconftool boost boost-devellibtoolbyacc flex bison这一步请根据相关系统进行按装,因为现在用的是red hat5服务器版,所以我直接从光盘里找rpm包直接安装通过rpm -ivh包名.rpm进行安装。  2.下载thrift的代码:/thrift/download/  3.解压代码包tar -zxvf thrift-0.2.0-incubating.tar.gz  4.拷贝thrift到安装目录cp -r thrift0.2.0 /usr/local/  5.cd /usr/local/thrift0.2.0 运行该目录下的./bootstrap.sh shell脚本。这一步你可能遇到这两种错误  错误一  [root@localhost thrift]# ./bootstrap.sh --enable-m4_pattern_allow  libtoolize: You should add the contents of `./aclocal/libtool.m4 to `aclocal.m4.  libtoolize: You should add the contents of `./aclocal/ltoptions.m4 to `aclocal.m4.  libtoolize: You should add the contents of `./aclocal/ltsugar.m4 to `aclocal.m4.  libtoolize: You should add the contents of `./aclocal/ltversion.m4 to `aclocal.m4.  libtoolize: You should add the contents of `./aclocal/lt~obsolete.m4 to `aclocal.m4.  configure.ac:50: error: possibly undefined macro: AC_PROG_MKDIR_PIf this token and others are legitimate, please use m4_pattern_allow.See the Autoconf documentation.  configure.ac:144: error: possibly undefined macro: AC_TYPE_INT16_T  configure.ac:145: error: possibly undefined macro: AC_TYPE_INT32_T  configure.ac:146: error: possibly undefined macro: AC_TYPE_INT64_T  configure.ac:147: error: possibly undefined macro: AC_TYPE_INT8_T  configure.ac:151: error: possibly undefined macro: AC_TYPE_SSIZE_T  configure.ac:152: error: possibly undefined macro: AC_TYPE_UINT16_T  configure.ac:153: error: possibly undefined macro: AC_TYPE_UINT32_T  configure.ac:154: error: possibly undefined macro: AC_TYPE_UINT64_T  configure.ac:155: error: possibly undefined macro: AC_TYPE_UINT8_T  configure.ac: installing `./install-sh  configure.ac: installing `./missing  compiler/cpp/Makefile.am: installing `./depcomp  

文档评论(0)

yan698698 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档