1.必须已经安装g++
2.sudo apt-get update
3.sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev
4.wget https://mirrors.tuna.tsinghua.edu.cn/apache/thrift/0.9.3/thrift-0.9.3.tar.gz(去官网找到最新也可以)
5.tar -xzf thrift-0.9.3.tar.gz
6.cd thrift-0.9.3
7. ./configure ( error: no acceptable C compiler found in $PATH 没有装g++)
8. make 有点慢
9.sudo make install
thrift -version 出现版本就ok了