thrift安装

安装thrift的过程中发现需要手动安装ivy
a、下载apache ivy:http://labs.renren.com/apache-mirror//ant/ivy/2.2.0/apache-ivy-2.2.0-bin.tar.gz
b、tar xzvf apache-ivy-2.2.0-bin.tar.gz
c、cp ivy-2.2.0.jar to ANT_HOME/lib
d、goto apache-ivy-2.2.0/src/example/hello-ivy, and run ant,也就是在目录apache-ivy-2.2.0/src/example/hello-ivy,运行ant
如果看到:
BUILD SUCCESSFUL
Total time: 29 seconds
就代表成了

在centos里再执行这一句应没问题:sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel

4. 安装thrift
a>下载thrift:http://mirror.bjtu.edu.cn/apache//thrift/0.8.0/thrift-0.8.0.tar.gz
b>tar -zxvf thrift-0.8.0.tar.gz
c>cd  thrift-0.8.0
d> ./configure --with-boost=/usr/local
e>make
f>make install
g>在命今行内输入 thrift,如果有提示,应就可以了

你可能感兴趣的:(thrift)