1. 安装依赖
apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
参考 https://thrift.apache.org/docs/install/debian.html
apt install libglib2.0-dev
2. 下载代码
git clone https://github.com/apache/thrift.git
git checkout v0.13.0
3. 编译&安装
./bootstrap.sh
./configure
make -j8
make install