thrift安装流程
参考: http://thrift.apache.org/docs/install/centos
1 更新yum源
sudo yum -y update
2 安装开发工具
sudo yum -y groupinstall “Development Tools”
需要安装 autoconf/automake/bison/boost/lievent, 查看thrift的configure文件,确定相关依赖软件的版本【节省时间,少坑】
3 安装wget
sudo yum install -y wget
4 安装 autoconf
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
tar xvf autoconf-2.69.tar.gz
cd autoconf-2.69
./configure –prefix=/usr
make
sudo make install
5 安装 automake
wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
tar xvf automake-1.14.tar.gz
cd automake-1.14
./configure –prefix=/usr
make
sudo make install
cd ..
6 安装 bison
wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
tar xvf bison-2.5.1.tar.gz
cd bison-2.5.1
./configure –prefix=/usr
make
sudo make install