Skip to content

Instantly share code, notes, and snippets.

@jonefeewang
Forked from amuraru/install_thrift.sh
Created October 27, 2017 09:22
Show Gist options
  • Save jonefeewang/7b7472e4edb5c622f70a74fba7918d08 to your computer and use it in GitHub Desktop.
Save jonefeewang/7b7472e4edb5c622f70a74fba7918d08 to your computer and use it in GitHub Desktop.
install thrift 0.8.0
#/bin/bash
set -e
wget http://archive.apache.org/dist/thrift/0.8.0/thrift-0.8.0.tar.gz
tar zxf thrift-0.8.0.tar.gz
pushd thrift-0.8.0
wget https://issues.apache.org/jira/secure/attachment/12511532/thrift-1465_1.patch
patch -p0 < thrift-1465_1.patch
wget https://issues.apache.org/jira/secure/attachment/12537024/THRIFT-1474-read-exceptions-first.patch
patch -p1 < THRIFT-1474-read-exceptions-first.patch
wget https://issues.apache.org/jira/secure/attachment/12525200/thrift-681-inline-parameter-doc-generation.patch
patch -p0 <thrift-681-inline-parameter-doc-generation.patch
wget https://issues.apache.org/jira/secure/attachment/12521431/thrift_1515.patch
patch -p0 <thrift_1515.patch
./configure --without-erlang --without-haskell --without-ocaml --without-ruby && make && sudo env JAVA_HOME=$JAVA_HOME make install
pushd lib/py
sudo python setup.py install
popd
echo "Done. To install extra language libraries, come back here and do it by hand"
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment