1.安装相关的依赖包
sudo apt-get install automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
2.解压压缩文件
tar -zxvf thrift-0.9.3.tar.gz
3.进入Thrift安装主目录
cd thrift-0.9.3
4 ./configure (可能出现权限不够,请修改文件权限sudo chmod 777 configure)
./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
5.sudo make
6.sudo make install
验证thrift是否装好
thrift -version