blob: f3694d15453819e740e5bbb47ac8597dae3e27d8 [file] [log] [blame] [view]
Roger Meiere9f00cb2014-05-30 14:35:34 +02001## CentOS setup
2The following command installs the required tools and libraries from the base repository needed to build and install the Apache Thrift compiler on a CentOS6/RHEL6 Linux based system.
3
4 sudo yum install automake libtool flex bison pkgconfig gcc-c++
5
6The base version of autoconf installed is presently 2.63, however Apache Thrift requires 2.65. A newer version must be installed from a nonstandard repository. For example:
7
8 sudo curl ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/monkeyiq:/centos6updates/CentOS_CentOS-6/noarch/autoconf-2.69-12.2.noarch.rpm > autoconf-2.69-12.2.noarch.rpm
9
10 sudo yum install autoconf-2.69-12.2.noarch.rpm
11
12To compile and install the Apache Thrift IDL compiler from the development source you will need to install git, clone the development master, then configure and build the IDL Compiler. For example:
13
14 sudo yum install git
15 git clone https://git-wip-us.apache.org/repos/asf/thrift.git
16 cd thrift
17 ./bootstrap.sh
18 ./configure --enable-libs=no
19 make
20 sudo make install
21
22This will build the compiler and install it on the path: /usr/local/bin/thrift
23
24#### Additional reading
25
26For more information on the requirements see: [Apache Thrift Requirements](/docs/install)
27
28For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource)