su
apt-get install devscripts dh-make autoconf libboost-dev libboost-all-dev libtool libevent-dev \
libglib2.0-dev debhelper mono-gmcs libmono-system-web2.0-cil ant libmono-dev \
erlang-base ruby1.8-dev python-all python-all-dev python-all-dbg ruby \
libcommons-lang-java php5 php5-dev libbit-vector-perl
#安装thrift
wget http://labs.renren.com/apache-mirror/thrift/0.7.0/thrift-0.7.0.tar.gz
tar zxf thrift-0.7.0.tar.gz
cd thrift-0.7.0/
chmod +x configure
chmod +x lib/erl/rebar
make
make install
#安装fb303
cd contrib/fb303
chmod +x bootstrap.sh
make
make install
#安装scribe
wget https://github.com/facebook/scribe/tarball/master
mv master scribe-2.2.tar.gz
tar zxvf scribe-2.2.tar.gz
cd facebook-scribe-6600084 #最后的数字可能不一样,直接下载2.2版,安装失败
chmod +x bootstrap.sh
./bootstrap.sh
make
make install