Thrift is an interface definition language and binary communication protocol that is used to define and create services for numerous languages. It is used as a remote procedure call (RPC) framework and was developed at Facebook for "scalable cross-language services development". It combines a software stack with a code generation engine to build services that work efficiently to a varying degree and seamlessly between C# , C++ (on POSIX-compliant systems), Cappuccino, Cocoa, Delphi, Erlang, Go, Haskell, Java, Node.js, OCaml, Perl, PHP, Python, Ruby and Smalltalk.
You can follow below steps to install Apache Thrift in Fedora
1. Download Apache Thrift
2. Install java libraries
sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel
checking for BN_init in -lcrypto... no configure: error: "Error: libcrypto required."
sudo yum install openssl-devel
(if java is not there install)
sudo yum install ant (to update ant version)
finally
./configure in the thrift folder thrift 0.9.1
Building C++ Library ......... : yes Building C (GLib) Library .... : yes Building Java Library ........ : yes Building C# Library .......... : no Building Python Library ...... : yes Building Ruby Library ........ : no Building Haskell Library ..... : no Building Perl Library ........ : no Building PHP Library ......... : no Building Erlang Library ...... : no Building Go Library .......... : no Building D Library ........... : no C++ Library: Build TZlibTransport ...... : yes Build TNonblockingServer .. : yes Build TQTcpServer (Qt) .... : no Java Library: Using javac ............... : javac Using java ................ : java Using ant ................. : /bin/ant Python Library: Using Python .............. : /bin/python
If something is missing that you think should be present, please skim the output of configure to find the missing component. Details present in config.log. To compile the code run
sudo make
if you get any error middle of the make you have to look at the error and config again removing that package
(I had to remove "cpp" package)
sudo ./configure --without-cpp
then run make command again
after making run
make install command
finally run thrift -version
[malintha@localhost thrift-0.9.1]$ thrift -version
Thrift version 0.9.1
No comments:
Post a Comment