Building Apache Thrift on CentOS 6.5
Starting with a minimal installation, the following steps is required to build Apache Thrift on Centos 6.5. This example builds from source, using the current development Master branch. These instructions should also work with Apache Thrift releases beginning with 0.9.2. Update the System
sudo yum-y update
Install The Platform development Tools
sudo yum-y groupinstall "Development Tools"
Upgrade Autoconf/automake/bison
sudo yum install-y wget
Upgrade autoconf
wget Http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gztar xvf autoconf-2.69.tar.gzcd autoconf-2.69./configure-- Prefix=/usrmakesudo make INSTALLCD.
Upgrade Automake
wget Http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gztar xvf automake-1.14.tar.gzcd automake-1.14./configure-- Prefix=/usrmakesudo make INSTALLCD.
Upgrade Bison
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gztar xvf bison-2.5.1.tar.gzcd bison-2.5.1./configure--prefix=/ Usrmakesudo make INSTALLCD.
ADD Optional C + + Language Library Dependencies
All languages require the Apache Thrift IDL Compiler and at this point everything needed to make the IDL Compiler is Insta Lled (if you are need the compiler you can skip to the Build step).
If you'll be developing Apache Thrift Clients/servers in C + + you'll also need additional packages to support the C + + s hared Library Build. Install C + + Lib Dependencies
sudo yum-y install libevent-devel zlib-devel openssl-devel
Upgrade Boost >= 1.53
wget Http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gztar XVF BOOST_1_53_0.TAR.GZCD Boost_1_53_0./bootstrap.shsudo./B2 Install
Build and Install the Apache Thrift IDL Compiler
git clone https://git-wip-us.apache.org/repos/asf/thrift.gitcd thrift./bootstrap.sh./configure--with-lua= Nomakesudo make Install
This would build the compiler (Thrift/compiler/cpp/thrift--version) and any language libraries supported. The Make install step installs the compiler in the path:/usr/local/bin/thrift you can use the./configure--enable-libs=n o Switch to build the Apache Thrift IDL Compiler only without Lib builds. To run tests use ' Make check '.
This snippet is generated by Apache Thrift ' s source tree docs: <= "" a= "" style= "Color:rgb (0, 136, 204); Text-decoration:none; " >doc/install/centos.md
Building Apache Thrift on CentOS 6.5¶