zoukankan      html  css  js  c++  java
  • Building Apache Thrift on CentOS 6.5¶

    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://git-wip-us.apache.org/repos/asf/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 docs: <="" a="" style="color: rgb(0, 136, 204); text-decoration: none;">doc/install/centos.md

  • 相关阅读:
    12_RHEL7.1普通用户添加sudo权限
    11_RHEL安装Maya2015
    10_RHEL安装搜狗输入法
    Fedora21源配置与显卡安装
    Centos7下Intel与AMD双显卡驱动的安装
    09_linux下安装Nvidia显卡驱动
    firewall-cmd --reload 防火墙
    CSS 单行 多行文本溢出显示省略号
    css3 渐变色
    Error: Cannot find module 'gulp-sass'
  • 原文地址:https://www.cnblogs.com/shishupeng/p/5726669.html
Copyright © 2011-2022 走看看