Apache Thrift is a software framework used for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently and seamlessly between various languages.
Open the terminal (Ctrl+Alt+T)
Once java is installed in your system, we can start installing the dependency packages for thrift server.
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
Now move to the tmp directory,
Download the thrift package from http://archive.apache.org/dist/thrift/0.9.3/thrift-0.9.3.tar.gz
Untar the downloaded file using the below command
sudo tar xvzf /home/greetz/Downloads/thrift-0.9.3.tar.gz
Note: Assuming that the downloaded file is stored in the Downloads folder by default.
Open the thrift directory and execute the following commands.
sudo make install
Check the location of thrift.pc
Configure the thrift.pc file
sudo gedit /usr/local/lib/pkgconfig/thrift.pc
Change the includedir as shown below,
check whether pkg-config path is correct.
pkg-config –cflags thrift
This will return the path as,
For more help about thrift,