Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save betapcode/4a6c56ba5ff4112a052616caafd57744 to your computer and use it in GitHub Desktop.
Save betapcode/4a6c56ba5ff4112a052616caafd57744 to your computer and use it in GitHub Desktop.
Install thrift 0.9.0 On centos 6.5

Update The system

sudo yum -y update

Install the Platform Development Tools

sudo yum -y groupinstall "Development Tools"

Install Wget

sudo yum install -y wget

Upgrade autoconf/automake/bison

  • upgrade autoconf
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure --prefix=/usr
make
sudo make install
cd ..
  • upgrade automake
wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
tar xvf automake-1.14.tar.gz
cd automake-1.14
./configure --prefix=/usr
make
sudo make install
cd ..
  • upgrad bison
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5.1.tar.gz
cd bison-2.5.1
./configure --prefix=/usr
make
sudo make install
cd ..

Build and Install the Apache Thrift 0.9.0

wget http://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz
tar -xf thrift-0.9.0.tar.gz
cd thrift-0.9.0
./configure
make
make install

Build and Install the Apache Thrift IDL Compiler

git clone https://git-wip-us.apache.org/repos/asf/thrift.git
cd thrift
./bootstrap.sh
./configure --with-lua=no
make
sudo make install

#OR YOU CAN USE DOCKER

https://github.com/apache/thrift/tree/master/build/docker

Reference : https://thrift.apache.org/docs/install/centos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment