Skip to content

Instantly share code, notes, and snippets.

@elprup
Last active December 17, 2015 16:59
Show Gist options
  • Save elprup/5642303 to your computer and use it in GitHub Desktop.
Save elprup/5642303 to your computer and use it in GitHub Desktop.
install facebook/scribe in ubuntu precise 12.04 script
#!/bin/bash
wget --no-check-certificate https://ftp-master.debian.org/keys/archive-key-6.0.asc && apt-key add archive-key-6.0.asc
sudo gpg --keyserver hkp://pgp.mit.edu --recv-keys 16126D3A3E5C1192
sudo gpg --export --armor 16126D3A3E5C1192 | sudo apt-key add -
sudo apt-get install libboost-all-dev libboost-test-dev libboost-program-options-dev libevent-dev automake libtool flex bison pkg-config g++ libssl-dev git-core make
wget http://archive.apache.org/dist/thrift/0.9.0/thrift-0.9.0.tar.gz
tar xzvf thrift-0.9.0.tar.gz
cd thrift-0.9.0
./configure
make
sudo make install
cd contrib/fb303/
./bootstrap.sh
./configure
make
sudo make install
cd ../../../
git clone git://github.com/facebook/scribe.git
cd scribe/
./bootstrap.sh
./configure CPPFLAGS="-DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H"
make
cd ./src
g++ -Wall -O3 -o scribed store.o store_queue.o conf.o file.o conn_pool.o scribe_server.o network_dynamic_config.o dynamic_bucket_updater.o env_default.o -L/usr/local/lib -L/usr/local/lib -L/usr/local/lib -lfb303 -lthrift -lthriftnb -levent -lpthread libscribe.a libdynamicbucketupdater.a -L/usr/lib -lboost_system-mt -lboost_filesystem-mt
cd ..
sudo make install
sudo ldconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment