Building Apache Thrift on CentOS 6.5¶

Source: Internet
Author: User
Tags automake

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¶

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.