###1、下载thrift0.9.3的安装包,进行解压。
http://apache.mirror.cdnetworks.com/thrift/0.9.3/thrift-0.9.3.tar.gz
###2、编译、安装:
####2.1、 执行configure(如果出现“configure: error: Bison version 2.5 or higher must be installed on the system!”, 跳到步骤3 )
./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local --without-ruby --without-perl --without-php --without-nodejs
####2.2、
make
make install
####2.3、是否成功:
thrift -version
###3、如果出现“configure: error: Bison version 2.5 or higher must be installed on the system!”,升级bison:
####3.1、下载并解压:bison-3.7.6 ( http://ftp.gnu.org/gnu/bison/ )
####3.2、编译、安装:
./configure && make -j$(getconf _NPROCESSORS_ONLN) && make install
###3.3、是否成功:
bison -V