前言
为了能给.php的程序提供访问平台服务接口,以管理Hadoop/Spark集群,安装Thrift
Thrift介绍
Thrift是一个软件框架,用来进行可扩展且跨语言的服务的开发。它结合了功能强大的软件堆栈和代码生成引擎,以构建在 C++, Java,
Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript,Node.js, Smalltalk, and OCaml 这些编程语言间无缝结合的、高效的服务。
安装开发工具集:
sudo yum -y groupinstall "Development Tools"
升级工具:
sudo yum -y update
安装:
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure--prefix=/usr
make
sudo
make install
cd..
wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
tar xvf automake-1.14.tar.gz
cd automake-1.14
./configure--prefix=/usr
make
sudo make install
cd..
Upgrade bison
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5.1.tar.gz
cd bison-2.5.1
./configure--prefix=/usr
make
sudo make install
cd..
sudo yum -y install libevent-devel zlib-devel openssl-devel
wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gz
https://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz/download
tar xvf boost_1_53_0.tar.gz
cd boost_1_53_0
./bootstrap.sh
sudo ./b2 install
Build and Install the Apache Thrift IDL Compiler
git clone https://git-wip-us.apache.org/repos/asf/thrift.git
cd thrift
git checkout 0.9.3
git gc
./bootstrap.sh
./configure--with-lua=no
make
sudo make install
./bootstrap.sh
###############
./configure--with-lua=no
make
#ifdef HAVE_INTTYPES_H
#define __STDC_FORMAT_MACROS
#include
#endif
http://www.cnblogs.com/wanghaiyang1930/p/6404847.html
安装开发工具集:
原文:
http://thrift.apache.org/docs/install/centos