Linux下安装thrift

安装配置Thrift
Thrift的编译器使用C++编写的,在安装编译器之前,首先应该保证操作系统基本环境支持C++的编译,安装相关依赖的软件包,如下所示

[root@localhost ~]#yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel openssl-devel

下载Thrift的软件包,并解压缩:

[root@localhost ~]# cd /root/hbk/download/
[root@localhost download]#  wget http://mirror.bit.edu.cn/apache/thrift/0.11.0/thrift-0.11.0.tar.gz
[root@localhost download]# tar -zxvf thrift-0.11.0.tar.gz 

[root@localhost download]# ls
thrift-0.11.0  thrift-0.11.0.tar.gz

配置、编译、安装Thrift,如下所示:

[root@localhost download]# cd thrift-0.11.0
[root@localhost thrift-0.11.0]# ./configure
[root@localhost thrift-0.11.0]# make
[root@localhost thrift-0.11.0]# make install  

猜你喜欢

转载自blog.csdn.net/huangbaokang/article/details/80065606