Install Thrift in Linux

  
 

Thrift is a software framework for supporting the development of extensible cross-language services, seamlessly with C++, Java, Python, PHP
, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, and OCaml are combined. It was originally developed by Facebook and later opened up to Apache Incubator. Thrift supports object serialization/deserialization and RPC service writing. This article mainly introduces the thrift installation steps under LinuxOS
, please refer to the installation under win32 (http://wiki.apache.org/thrift/ThriftInstallationWin32). The installation steps of Thrift are as follows: (1) Download thriftwget http://labs.renren.com/apache-mirror//thrift/0.8.0/thrift-0.8.0.tar.gz (thrift current version is 0.8.0) wget defaults to download files in the system In the current directory, you can view the current directory through $pwd, and then find the downloaded thrift file in the current directory. (2) Extract thrift-0.8.0.tar.gz:tar -zxvf thrift-*.tar.gz(3) View the README and INSTALL files (if any), view the thrift installation instructions and the README and INSTALL files. Thrift dependent packages (4) install other packages that thrift depends on using sudo apt-get install command to install sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex Bison pkg-config g++ libssl-dev (5) to start installing threata) If you install from source, first run $./bootstrap.sh in the root directory to generate the configure script b) Otherwise, if the download is directly Tarball, skip step a, run the configure script in the root directory of the software directly. $./configurec) Compile with the make command $ maked) Use the make install command to install $ sudo make install(6) Test whether thrift is successfully installed. Thrift -version command, check the output information to determine whether thrift is installed successfully. If the output of Thrift version 0.8.0 indicates that thrift is installed successfully, at this point, you Can be developed using thrift.

Copyright © Windows knowledge All Rights Reserved