Python thrift

本文详细介绍了如何在CentOS 6.5上从源代码构建Apache Thrift,包括更新系统、安装开发工具、升级autoconf、automake和bison,以及添加C++库依赖。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

# Building Apache Thrift on CentOS 6.5
3 Starting with a minimal installation, the following steps are required to build Apache Thrift on Centos 6.5. This example builds from source, using the current development master branch. These instructions should also work with Apache Thrift releases beginning with 0.9.2.
5 ## Update the System
7         sudo yum -y update
9 ## Install the Platform Development Tools
11         sudo yum -y groupinstall "Development Tools"
13 ## Upgrade autoconf/automake/bison
15         sudo yum install -y wget
17 ### Upgrade autoconf
19         wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz
20         tar xvf autoconf-2.69.tar.gz
21         cd autoconf-2.69
22         ./configure --prefix=/usr
23         make
24         sudo make install
25         cd ..
27 ### Upgrade automake
29         wget http://ftp.gnu.org/gnu/automake/automake-1.14.tar.gz
30         tar xvf automake-1.14.tar.gz
31         cd automake-1.14
32         ./configure --prefix=/usr
33         make
34         sudo make install
35         cd ..
37 ### Upgrade bison
39         wget http://ftp.gnu.org/gnu/bison/bison-2.5.1.tar.gz
40         tar xvf bison-2.5.1.tar.gz
41         cd bison-2.5.1
42         ./configure --prefix=/usr
43         make
44         sudo make install
45         cd ..
47 ## Add Optional C++ Language Library Dependencies
49 All languages require the Apache Thrift IDL Compiler and at this point everything needed to make the IDL Compiler is installed (if you only need the compiler you can skip to the Build step). 
51 If you will be developing Apache Thrift clients/servers in C++ you will also need additional packages to support the C++ shared library build.
53 ### Install C++ Lib Dependencies
55         sudo yum -y install libevent-devel zlib-devel openssl-devel
57 ### Upgrade Boost >= 1.53
59         wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gz
60         tar xvf boost_1_53_0.tar.gz
61         cd boost_1_53_0
62         ./bootstrap.sh
63         sudo ./b2 install
65 ## Build and Install the Apache Thrift IDL Compiler
67         git clone https://git-wip-us.apache.org/repos/asf/thrift.git
68         cd thrift
69         ./bootstrap.sh
70         ./configure --with-lua=no
71         make
72         sudo make install
74 This will build the compiler (thrift/compiler/cpp/thrift --version) and any language libraries supported. The make install step installs the compiler on the path: /usr/local/bin/thrift
75 You can use the ./configure --enable-libs=no switch to build the Apache Thrift IDL Compiler only without lib builds. To run tests use "make check".
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值