1. Download the thrift-0.11.0.tar.gz version here at the official download thrift Http://thrift.apache.org/download
2. If you want to support installing the CPP version, you need to install boost and bison, if you want to thrift support tnonblockingserver, you need to install the Libevent,libevent-devel library first
Install Boost Tutorial: https://www.cnblogs.com/dj0325/p/7977692.html
Installation libevent Tutorial: https://www.cnblogs.com/dj0325/p/7978158.html
Installing Libevent-devel:centos Yum Install Libevent-devel
Note: Ubuntu is apt-get install Libevent-dev
3. Installing Thrift
Thrift Install compile-time default lookup/usr/local path, libevent and boost are installed by default in/usr/local, if installed on the specified path,./configure--with-boost-- With-libevent Specifying a path
./configure--with-cpp--with-boost=/home/lib/boost--with-libevent=/home/lib/libevent
Make
Make install
This thrift installs to the header file/usr/local/include/thrift and the dynamic library/usr/local/lib
4. g++-i/usr/local/include/-l/usr/local/lib-lthrift When compiling a C + + program
5. Thrift compiling the thrift file into CPP
base. Thrift
Thrift C + + Centos installation