(This tutorial is tested on thrift 0.5.0)
I was working on thrift (http://thrift.apache.org/), found a couple of issues during the installation and had to look at a couple of links to figure out the correct method.. so i thought to sum it up here.
Hope you find the post helpful. I will try to post example of thrift using ruby soon :)
I was working on thrift (http://thrift.apache.org/), found a couple of issues during the installation and had to look at a couple of links to figure out the correct method.. so i thought to sum it up here.
- Download thrift (http://thrift.apache.org/)
- Extract the downloaded archive and go to the folder through terminal
- In order to install thrift, you'd need following dependencies: (as mentioned on the thrift wiki page)
- g++ 3.3.5+
- boost 1.33.1+ (1.34.0 for building all tests)
- Runtime libraries for lex and yacc might be needed for the compiler
- The dependencies for each language are different which you can see at the link => http://wiki.apache.org/thrift/ThriftRequirements
- GNU build tools: autoconf 2.59+ (2.60+ recommended), automake 1.9+, libtool
- For C, you'll also might need to install "libglib2.0-dev"
- In order to install above dependencies, you can use the following command
sudo apt-get install g++ libboost-dev libevent-dev automake pkg-config libtool flex bison - You might need to bootstrap first, for that run ./bootstrap.sh (assuming you are in the directory of extracted thrift)
- Now, run the following commands (in sequence) to configure and install thrift
- ./configure
- make
- sudo make install
- Now, you are good to go with thrift. The final piece missing is the thrift gem. You can install that using command => sudo gem install thrift
Hope you find the post helpful. I will try to post example of thrift using ruby soon :)
No comments:
Post a Comment