Skip to content

Instantly share code, notes, and snippets.

@fingul
Forked from lox/install-scribed.sh
Created December 28, 2011 10:31
Show Gist options
  • Save fingul/1527499 to your computer and use it in GitHub Desktop.
Save fingul/1527499 to your computer and use it in GitHub Desktop.
This is the process for installing Thrift, Scribed and the php extension on Ubuntu
#!/bin/bash
# This is the process for installing Thrift, Scribed and the php extension on Ubuntu
# [email protected]
# install dependancies
sudo apt-get install -y libboost1.42-all-dev libevent-dev build-essential flex bison libtool libevent-dev php5-dev pkg-config
alias make="make -j 4"
# install thrift from source
#https://github.com/cookbooks/thrift
rm -rf /usr/local/bin/*
rm -rf /usr/local/lib/*
rm -rf /usr/local/src/*
cd /usr/local/src
#-- NOT WORK FOR ME
#test ! -d thrift && git clone git://git.apache.org/thrift.git
svn co http://svn.apache.org/repos/asf/thrift/tags/thrift-0.5.0/
cd thrift-0.5.0
#cd thrift
./bootstrap.sh
./configure --without-ruby --without-csharp --without-java --without-erlang --without-perl
make
sudo 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
test ! -d scribe && git clone https://github.com/duedal/scribe.git
cd scribe
./bootstrap.sh
CPPFLAGS="-DBOOST_FILESYSTEM_VERSION=2"
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