Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, Smalltalk, and OCaml.
我们在一些跨语言的项目里使用了Thrift,另外Cassandra也需要Thrift的支持。
1.下载或者wget Thrift的软件包:http://incubator.apache.org/thrift/
2.解压缩。
3.进入文件夹,执行./booststrap.sh
执行./configure
这一步可能会出现“We could not detect the boost libraries”的错误,解决办法是在新立得里选择并安装libboost-dev软件包。
make
这一步可能会出现”libtool:you should recreate aclocal.m4 with macros from libtools 2.2.4 Debian-2.2.4-0ubuntu4“的错误,解决办法是运行
aclocal
libtoolize --force
autoconf
autoheader
automake
然后重新运行booststrap.sh/configure/make。
make install
本文介绍如何使用Thrift框架搭建跨语言的服务开发环境。通过详细步骤指导读者完成Thrift的安装配置,并解决过程中可能出现的问题,如Boost库检测失败及libtool版本相关错误。
2904

被折叠的 条评论
为什么被折叠?



