How to install Apache Thrift on Ubuntu 10.10 Maverick 12.04 Precise 14.04 Trusty
Update 2014-10-06: Here's what I did to install on Ubuntu 14.04 Trusty.
$ # Install your choice of java
$ sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
$ cd /tmp
$ curl http://archive.apache.org/dist/thrift/0.9.1/thrift-0.9.1.tar.gz | tar zx
$ cd thrift-0.9.1/
$ ./configure
$ make
$ sudo make install
$ thrift --help
References:
Update 2013-02-20: Here's what I did to install on Ubuntu 12.04.
$ sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
$ cd /tmp
$ curl https://dist.apache.org/repos/dist/release/thrift/0.9.0/thrift-0.9.0.tar.gz | tar zx
$ cd thrift-0.9.0/
$ ./configure
$ make
$ sudo make install
$ thrift --help
References:
Old information
This is the post that showed me how to get all the dependencies I needed: http://blog.birchroad.net/2011/03/15/installing-apache-thrift-in-ubuntu/
Other links:
Install dependencies
$ sudo apt-get install libboost-dev libevent-dev libtool flex bison g++ automake pkg-config
$ sudo apt-get install libboost-test-dev
$ sudo apt-get install libmono-dev ruby1.8-dev libcommons-lang-java php5-dev
Build thrift
$ cd /tmp
$ curl http://apache.deathculture.net//thrift/0.6.1/thrift-0.6.1.tar.gz | tar zx
$ cd thrift-0.6.1/
$ ./configure
$ make
$ sudo make install
$ which thrift
Other possible dependencies:
Build-Depends: debhelper (>= 5), build-essential, mono-gmcs, python-dev, ant, libmono-dev, erlang-base, ruby1.8-dev, autoconf, python-support, automake, pkg-config, libtool, bison, flex, libboost-dev | libboost1.40-dev, python-all, python-all-dev, python-all-dbg, ruby, openjdk-6-jdk | java-sdk, libcommons-lang-java, libboost-test-dev | libboost-test1.40-dev, libevent-dev, perl (>= 5.8.0-7), php5, php5-dev
Comments
Thanks dude
I tried to install apache thrift in my ubantu 12.04 system by following this above steps finally when i try to enter thrift --help it shows thrift not found
Fresh link for thrift 0.9.0 :
https://archive.apache.org/...
disqus:2430632678
Path to download the thrift files.
https://dist.apache.org/rep...
disqus:2818411144