Apache Thrift - Centos 6.5 Install http://thrift.apache.org/docs/install/centos

Building Apache Thrift on CentOS 6.5

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.

Update the System

sudo yum -y update

Install the Platform Development Tools

sudo yum -y groupinstall "Development Tools"

Upgrade autoconf/automake/bison

sudo yum install -y wget

Upgrade 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
cd ..

Upgrade 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 ..

Upgrade 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
cd ..

Add Optional C++ Language Library Dependencies

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).

If you will be developing Apache Thrift clients/servers in C++ you will also need additional packages to support the C++ shared library build.

Install C++ Lib Dependencies

sudo yum -y install libevent-devel zlib-devel openssl-devel

Upgrade Boost >= 1.53

wget http://sourceforge.net/projects/boost/files/boost/1.53.0/boost_1_53_0.tar.gz
tar xvf boost_1_53_0.tar.gz
cd boost_1_53_0
./bootstrap.sh
sudo ./b2 install

Build and Install the Apache Thrift IDL Compiler

git clone https://github.com/apache/thrift.git
cd thrift
./bootstrap.sh
./configure --with-lua=no
make
sudo make install

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 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".

This snippet was generated by Apache Thrift's source tree docsdoc/install/centos.md

最新文章

  1. python之路 - 基础1
  2. SQL 用户定义表类型,在存储过程里使用表类型,表参数作参数
  3. angularJS 二
  4. Bootstrap强调相关的类
  5. Struts2 Package
  6. 蓝桥杯--Quadratic Equation
  7. QTcpsocket 实现FTP
  8. MSChart使用之双Y轴使用
  9. dbUtils的基本使用
  10. Cocos2d-x Lua游戏开发Mac环境搭建以及一点点感悟
  11. How to Find the Self Service Related File Location and Versions
  12. PhoenixFD插件流体模拟——UI布局【Export】详解
  13. 洗礼灵魂,修炼python(63)--爬虫篇—re模块/正则表达式(1)
  14. Python单元测试框架 unittest详解
  15. redis命令参考和redis文档中文翻译版
  16. _mount_allowed
  17. split用法
  18. Linux centOS Ubuntu --- 使用systemctl添加开机启动
  19. linux的swap相关
  20. Jmeter使用笔记之意料之外的

热门文章

  1. 开源框架---tensorflow c++ API中./configure步骤细节
  2. Kubernetes概览
  3. 通过trace分析优化器如何选择执行计划
  4. 在 windows 上安装 git 2.22
  5. MySQL之两张表关系查找例子
  6. 17.组件页面应用和vue项目生成
  7. BZOJ4802 欧拉函数 (Pollard-Rho Miller-Robin)
  8. Ubuntu18.04开机动画(bootsplash)安装
  9. leetcode解题报告(18):Contains Duplicate
  10. [转]Linux下的常见信号总结