前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >centos 6.5 thrift 0.9 转

centos 6.5 thrift 0.9 转

作者头像
双面人
发布2019-04-10 15:04:24
3750
发布2019-04-10 15:04:24
举报
文章被收录于专栏:热爱IT热爱IT

Update the System

代码语言:javascript
复制
sudo yum -y update

Install the Platform Development Tools

代码语言:javascript
复制
sudo yum -y groupinstall "Development Tools"

Upgrade autoconf/automake/bison

代码语言:javascript
复制
sudo yum install -y wget

Upgrade autoconf

代码语言:javascript
复制
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

代码语言:javascript
复制
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

代码语言:javascript
复制
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

代码语言:javascript
复制
sudo yum -y install libevent-devel zlib-devel openssl-devel

Upgrade Boost >= 1.53

代码语言:javascript
复制
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

代码语言:javascript
复制
git clone https://github.com/apache/thrift.git
cd thrift
./bootstrap.sh[这个不要]
./configure -【这个不要后面】-with-lua=no
make
sudo make install

http://thrift.apache.org/download

(adsbygoogle = window.adsbygoogle || []).push({});

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Update the System
  • Install the Platform Development Tools
  • Upgrade autoconf/automake/bison
    • Upgrade autoconf
      • Upgrade automake
        • Upgrade bison
        • Add Optional C++ Language Library Dependencies
          • Install C++ Lib Dependencies
            • Upgrade Boost >= 1.53
            • Build and Install the Apache Thrift IDL Compiler
            领券
            问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档