Skip to content

Instantly share code, notes, and snippets.

@hawkup
Last active February 24, 2018 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hawkup/a71dbc381aa363e87af3 to your computer and use it in GitHub Desktop.
Save hawkup/a71dbc381aa363e87af3 to your computer and use it in GitHub Desktop.
Install thrift 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 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

@hustxiayang
Copy link

what if you do not have sudo permission?

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