小白装个小东西总是要搞n久 T_T
下载thrift依赖的东西
sudo apt-get install python-dev
sudo apt-get install libboost-dev automake libtool flex bison pkg-config g++
下载最新版本thrift
wget http://apache.freelamp.com/incubator/thrift/0.2.0-incubating/thrift-0.2.0-incubating.tar.gz
tar -zxvf thrift-0.2.0-incubating.tar.gz
移到默认安装目录
cp -r thrift-0.2.0 /usr/local/ (默认安装目录?否则可能影响到生成的thrift bin文件虽然有生成,但是找不到,安装在这里的话可以生成的thrift就在/usr/local/bin里了,这时终端输入thrift就有了,否则command not found.当然/usr/local/bin原先应该设置在$PATH里)
cd /usr/local/thrift-0.2.0
./bootstrap.sh (有You should add the contents of `./aclocal/libtool.m4' to `aclocal.m4'. glibtoolize: You should add the contents of `./aclocal/ltoptions.m4' to `aclocal.m4'. glibtoolize ...
关于libtoolize,不管,继续下面的命令)
./configure --with-boost=/usr/include/ 因为boost安装在/usr/include里?
非常重要:可能这里有一个关于libtool的错误Version mismatch error. This is libtool 2.2.4, but the libtool: definition of this LT_INIT comes from libtool 2.2.6. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.4 libtool: and run autoconf again.
这是由于libtool版本不一致引起的,终端输入libtool --version可以看出我们的版本是libtool 2.2.4(
在/usr/bin里)。但是/usr/local/thrift-0.2.0里的libtool是2.2.6的,
所以用/usr/bin的libtool复制到/usr/local/thrift-0.2.0中,覆盖原来的版本。再执行上面的./configure --with-boost=/usr/include/ 命令,ok~~
sudo make
sudo make install
在终端输入thrift,有下面的东东,ok,install thrift success.
thrift bin文件在/usr/local/bin里
Usage: thrift [options] file
Options:
-version Print the compiler version
-o dir Set the output directory for gen-* packages
(default: current directory)
-I dir Add a directory to the list of directories
searched for include directives
-nowarn Suppress all compiler warnings (BAD!)
分享到:
相关推荐
虚拟机安装thrift详细操作,完全是自己手动安装,目的是能够使用C++等其他语言访问HBase
Thrift 在Windows下的安装与实例 vs2010 本文的不同之处在于,不借助Cygwin或者MinGW,只用VS2010,和Thrift官网下载的源文件,安装Thrift并使用。 本文可用于thrift-0.9.1.tar.gz,thrift-0.10.0.tar.gz版本安装
Thrift是一个各种语言开发的中间连接件,是用Java开发的源码模组插件包 可以单独编译安装.可是很多时候 按照官方提供的步骤都是不成功的的. 更要命的问题是,官方采用了SVN自动文件更新服务,在编译过程中有自动连接SVN...
thrift0.12.0 Ubuntu 安装包及安装教程.tar.xz
thrift_sasl-0.3.0.tar.gz
今天小编就为大家分享一篇关于在Windows系统下安装Thrift的方法与使用讲解,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧
今天小编就为大家分享一篇解决Mac安装thrift因bison报错的问题,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
thrift 安装包。
thrift安装文件
mac 想安装低版本thrift 0.9.3太难了,高版本比较简单 直接执行 brew install thrift.rb 即可安装
注意:确保已安装 Thrift。 有关 Thrift 安装指南,请参阅: 目标概述 generate-java绑定到 generate-sources 阶段,用于编译 thrift 文件。 generate-java-test绑定到 generate-test-sources 阶段,用于编译测试 ...
thrift-0.9.2.安装.
该模块使用 Apache thrift、boost 和 ConncurrentQueue.hpp(创建到 thrift 服务器的连接池),要安装它,您的系统必须安装 thrift 和 boost[system, thread) 你不能只安装这个模块,你必须写一个 thrift 服务器,...
安装Thrift的官方文档地址: http://thrift.apache.org/docs/install/ 当我看到windows安装需要Cygwin或MinGW时,我就直接放弃在windows中配置的想法了,直接打开虚拟机用CentOS进行安装,使用一堆命令安装毕竟比...
流行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 查看版本:...
Spring节俭整合 ... 如果没有,请访问以下载并安装Thrift。 如何启动 首先启动服务器: mvn jetty:run 然后启动客户端: mvn exec:java 更多信息 请阅读我在上的(德语)文章,以获取更多信息。
php thrift 客户端调用 python服务端,学习了解thrif非常有用附代码和centos thift 安装文件
Thrift PHP软件库 执照 根据一项或多项贡献者许可协议获得了Apache Software Foundation(ASF)的许可。 有关版权拥有权的其他信息,请参见随此作品一起分发的NOTICE文件。 ASF根据Apache许可证2.0版... 将所有thrift