Skip to content

Instantly share code, notes, and snippets.

@amuraru
Forked from tscurtu/gist:3033705
Last active August 22, 2019 08:40
Show Gist options
  • Save amuraru/3138500 to your computer and use it in GitHub Desktop.
Save amuraru/3138500 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