1.下载安装包:thrift-0.9.3.tar.gz
2.解压:]# tar xvzf thrift-0.9.3.tar.gz
得到:thrift-0.9.3目录
3.yum安装:# yum install boost-devel-static libboost-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev ant
4. 运行软件根目录下的configure脚本:# ./configure --with-cpp --with-boost --with-python --without-csharp --with-java --without-erlang --without-perl --without-php --without-php_extension --without-ruby --without-haskell --without-go
如果在此第四步baoc报错:configure: error: "Error: libcrypto required."
解决方法:yum -y install openssl openssl-devel
5.使用make命令进行编译:make
6.使用make install命令进行安装:make install