安裝 thrift-0.9.2 步驟如下:
1. 下載
# wget http://archive.apache.org/dist/thrift/0.9.2/thrift-0.9.2.tar.gz
2. 安裝依賴
# yum -y install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel
3. 升級bison版本到2.5
# wget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz # tar -zxf bison-2.5.tar.gz # cd bison-2.5 # ./configure # make # make install
4. 編譯與安裝
# tar -zxf thrift-0.9.2.tar.gz # cd thrift-0.9.2 # ./configure --with-lua=no # make # make install
5. 驗證安裝是否成功
# thrift -version Thrift version 0.9.2
安裝參考:
http://thrift.apache.org/docs/install/
http://thrift.apache.org/docs/install/centos