Skip to content

Instantly share code, notes, and snippets.

@vincentchu
Forked from lox/install-scribed.sh
Created September 13, 2010 01:56
Show Gist options
  • Save vincentchu/576704 to your computer and use it in GitHub Desktop.
Save vincentchu/576704 to your computer and use it in GitHub Desktop.
#!/bin/bash
# This is the process for installing Thrift, Scribed and the php extension on Ubuntu
# [email protected]
set -e
# install dependancies
aptitude install libboost1.40-dev libboost-filesystem1.40-dev libevent-dev build-essential flex bison libtool libevent-dev php5-dev pkg-config
# install thrift from source
cd /usr/local/src
test ! -d thrift && git clone git://git.apache.org/thrift.git
cd thrift
./bootstrap.sh
./configure --without-ruby --without-csharp --without-java --without-py --without-erlang --without-perl
make
make install
# install fb303
cd contrib/fb303/
./bootstrap.sh
make
sudo make install
# install scribe
cd /usr/local/src
test ! -d scribe && git clone git://github.com/facebook/scribe.git
cd scribe
./bootstrap.sh
make
sudo make install
sudo ldconfig
# install the php thrift extension
cd /usr/local/src/thrift/lib/php/src/ext/thrift_protocol
phpize
./configure --enable-thrift_protocol
make
make install
echo "extension=thrift_protocol.so" > /etc/php5/conf.d/thrift_protocol.ini
# configure scribe
mkdir -p /usr/local/scribe
cp /usr/local/src/scribe/examples/example1.conf /usr/local/scribe/scribe.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment