Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Facebook's branch of Apache Thrift, including a new C++ server.
C++ Python D Java Ruby PHP Other
branch: master
Failed to load latest commit information.
thrift Bump version to 25:0
.gitignore Versioning for Thrift, remove thrift/lib/cpp/config.h Initial import
LICENSE Initial import Update build script

FBThrift: Facebook's branch of apache thrift

The main focus of this package is the new C++ server, under thrift/lib/cpp2. This repo also contains a branch of the rest of apache thrift's repo with any changes Facebook has made, however the build system only supports cpp2.

Apache thrift is at


Note that under GCC, you probably need at least 2GB of memory to compile fbthrift. If you see 'internal compiler error', this is probably because you ran out of memory during compilation.


  • Facebook's folly library:

  • In addition to the packages required for building folly, Ubuntu 13.10 and 14.04 require the following packages (feel free to cut and paste the apt-get command below):

  sudo apt-get install \
      flex \
      bison \
      libkrb5-dev \
      libsasl2-dev \
      libnuma-dev \
      pkg-config \

For your convenience, a build script is provided for ubuntu 14.04 64-bit:

cd fbthrift/thrift

It will automatically pull down folly and build it, and then configure and build thrift.

  • Ubuntu 14.04 64-bit requires the following packages:

    • make
    • autoconf
    • libtool
    • g++
    • libboost-dev-all
    • libevent-dev
    • flex
    • bison
    • libgoogle-glog-dev
    • libdouble-conversion-dev
    • scons
    • libkrb5-dev
    • libsnappy-dev
    • libsasl2-dev


Some docs on the new cpp2 server are at:

Something went wrong with that request. Please try again.