Skip to content

Instantly share code, notes, and snippets.

@solar
Created March 7, 2012 05:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save solar/1991046 to your computer and use it in GitHub Desktop.
Save solar/1991046 to your computer and use it in GitHub Desktop.
Building facebook/scribe
# install boost-1.49.0
cd ~/src
curl -L "http://downloads.sourceforge.net/project/boost/boost/1.49.0/boost_1_49_0.tar.gz?r=http%3A%2F%2Fwww.boost.org%2Fusers%2Fhistory%2Fversion_1_49_0.html&ts=1331091084&use_mirror=jaist" | tar zxv
cd boost_1_49_0
./bootstrap.sh
./b2
sudo ./b2 --prefix=/usr/local/boost_1_49_0 install
# install fb303
cd ~/src/thrift-0.8.0/contrib/fb303
./bootstrap.sh --prefix=/usr/local/fb303 --with-thriftpath=/usr/local/thrift-0.8.0 CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H"
make
sudo make install
# install scribe
cd ~/src
git clone git://github.com/facebook/scribe.git
cd scribe
./bootstrap.sh --prefix=/usr/local/scribe --with-thriftpath=/usr/local/thrift-0.8.0 --with-fb303path=/usr/local/fb303 --with-boost=/usr/local/boost_1_49_0 CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -DBO
OST_FILESYSTEM_VERSION=2"
make
sudo make install
# install thrift-0.8.0
cd ~/src
curl -L http://ftp.jaist.ac.jp/pub/apache//thrift/0.8.0/thrift-0.8.0.tar.gz | tar zxv
cd thrift-0.8.0
./configure --prefix=/usr/local/thrift-0.8.0 --with-boost=/usr/local/boost_1_49_0
make
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment