#安装依赖
sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
# 下载
wget https://dlcdn.apache.org/thrift/0.15.0/thrift-0.15.0.tar.gz
tar -zxvf thrift-0.15.0.tar.gz
cd thrift-0.15.0
./configure --with-cpp --with-boost --without-python --without-csharp --with-java --without-erlang --without-perl --with-php --without-php_extension --without-ruby --without-haskell --without-go
sudo make install
附:官网查看最新的thrift包:Apache Thrift - Homehttps://thrift.apache.org/