1 # Building Apache Thrift on CentOS 6.5
3 Starting with a minimal installation, the following steps are 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.
9 ## Install the Platform Development Tools
11 sudo yum -y groupinstall "Development Tools"
13 ## Upgrade autoconf/automake/bison
15 sudo yum install -y wget
19 wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
20 tar xvf autoconf-2.69.tar.gz
22 ./configure --prefix=/usr
29 wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
30 tar xvf automake-1.14.tar.gz
32 ./configure --prefix=/usr
39 wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
40 tar xvf bison-2.5.1.tar.gz
42 ./configure --prefix=/usr
47 ## Add Optional C++ Language Library Dependencies
49 All languages require the Apache Thrift IDL Compiler and at this point everything needed to make the IDL Compiler is installed (if you only need the compiler you can skip to the Build step).
51 If you will be developing Apache Thrift clients/servers in C++ you will also need additional packages to support the C++ shared library build.
53 ### Install C++ Lib Dependencies
55 sudo yum -y install libevent-devel zlib-devel openssl-devel
57 ### Upgrade Boost >= 1.56
59 wget http://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.gz
60 tar xvf boost_1_56_0.tar.gz
65 ## Build and Install the Apache Thrift IDL Compiler
67 git clone https://github.com/apache/thrift.git
70 ./configure --with-lua=no
74 This will build the compiler (thrift/compiler/cpp/thrift --version) and any language libraries supported. The make install step installs the compiler on the path: /usr/local/bin/thrift
75 You can use the ./configure --enable-libs=no switch to build the Apache Thrift IDL Compiler only without lib builds. To run tests use "make check".