标签:centos thriftserver thrift网关 安装
Step1
yum install automake libtool flex bison pkgconfig gcc-c++
Step 2
curl ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/monkeyiq:/centos6updates/CentOS_CentOS-6/noarch/autoconf-2.69-12.2.noarch.rpm > autoconf-2.69-12.2.noarch.rpm
Step 3
yum install autoconf-2.69-12.2.noarch.rpm
Step 4
yum install git
git clone https://git-wip-us.apache.org/repos/asf/thrift.git
cd
thrift
./bootstrap.sh
./configure --enable-libs=no(一说为在安装python时--enable-libs=python)
make
make install
(编译安装完成后,会写这个文件/usr/lib/python2.6/site-packages/thrift-1.0.0_dev-py2.6.egg-info,并且在/data/thrift/thrift/lib/ 下会有很多库文件供调用)
Step 5
yum install libevent-devel zlib-devel openssl-devel
Step 6
yum install wget
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo -P /etc/yum.repos.d
sh -c ‘echo "enabled=1" >>
/etc/yum.repos.d/devtools-1.1.repo‘
yum install devtoolset-1.1
scl enable
devtoolset-1.1 bash
Step 7
wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
tar
-xzvf boost_1_55_0.tar.gz
cd boost_1_55_0
./bootstrap.sh
./b2
install
标签:centos thriftserver thrift网关 安装
原文地址:http://7737197.blog.51cto.com/7727197/1664645