blob: 10c0c35d32d1e6b4f44c8b34cacab22a60db363a [file] [log] [blame] [view]
Roger Meiere9f00cb2014-05-30 14:35:34 +02001---
2title: "Centos Install"
3kind: doc
4---
5## CentOS setup
6The 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.
7
8 sudo yum install automake libtool flex bison pkgconfig gcc-c++
9
10The 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:
11
12 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
13
14 sudo yum install autoconf-2.69-12.2.noarch.rpm
15
16To 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:
17
18 sudo yum install git
19 git clone https://git-wip-us.apache.org/repos/asf/thrift.git
20 cd thrift
21 ./bootstrap.sh
22 ./configure --enable-libs=no
23 make
24 sudo make install
25
26This will build the compiler and install it on the path: /usr/local/bin/thrift
27
28#### Additional reading
29
30For more information on the requirements see: [Apache Thrift Requirements](/docs/install)
31
32For more information on building and installing Thrift see: [Building from source](/docs/BuildingFromSource)