257d3c753ce950d73912e26c5f701b3d.jpgApache Thrift 是一個挺有趣的東西,由 Facebook 所提出。透過定義好的描述性語言,讓不同語言 (C++, C#, Cocoa, Erlang, Haskell, Java, Ocami, Perl, PHP, Python, Ruby, Smalltalk) 得以互通
 
其實講穿了,就像是一個定應資料傳遞方式的 web service ,並且應用 RPC 的概念~~~
  • Install the Platform Development Tools
    yum -y groupinstall "Development Tools"
    
  • Upgrade autoconf/automake/bison
    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
    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
    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
    make install
    cd ..
  • Install C++ Lib Dependencies
    yum -y install libevent-devel zlib-devel openssl-devel
    
  • Upgrade Boost
    wget http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.gz
    tar xvf boost_1_55_0.tar.gz
    cd boost_1_55_0
    ./bootstrap.sh
    ./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
    make install
Facebook 討論區載入中...