Install Apache Thrift from source in Ubuntu 14.04

Apache Thrift helps you build scalable cross-language services.  It supports C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml. It is really helpful if you want to scale your system base on HTTP protocol. And the below is a tutorial help you are able install Apache Thrift in Ubuntu 14.04.

Actually, It is easily to install it with command:

But with building from source code, there is more complicate than that. See the below.

Preparing libraries:

Install JAVA:

Clone Thrift source and make install:

Testing: