Installing Thrift
USE="cpp" emerge =dev-libs/thrift-0.7.0
mkdir /usr/local/include
ln -s /usr/include/thrift /usr/local/include/thrift
ln -s /usr/bin/thrift /usr/local/bin/thrift
Installing fb303
cd /usr/local/include
svn co http://svn.apache.org/repos/asf/thrift/trunk/contrib/fb303
cd fb303
./bootstrap.sh
./configure
make
make install
Installing Scribe
git clone https://github.com/facebook/scribe
./bootstrap.sh
./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DBOOST_FILESYSTEM_VERSION=2"
make
sudo make install