Created
April 15, 2011 07:03
-
-
Save newhouseb/921283 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def setup_scribe(): | |
# Tested on a fresh Ubuntu 10.10 64-bit server | |
sudo('apt-get install python-dev libevent-1.4-2 libevent-dev ' + | |
'libboost-dev libtool build-essential automake libglib2.0-0 ' + | |
'libglib2.0-dev autoconf libboost-all-dev flex bison git') | |
with settings(warn_only=True): | |
run('rm -rf thrift') | |
run('git clone https://github.com/apache/thrift.git') | |
with cd('thrift'): | |
# HEAD has some issues with pure thrift types (fb303 failed) | |
# 0.6.0's bootstrap.sh seemed borked although my autoconf might | |
# have been screwy because i was working on a borked ext4 partition | |
# 0.5.0 is what the scribe docs mention anyway | |
run('git checkout thrift-0.5.0') | |
run('./bootstrap.sh') | |
run('./configure') | |
run('make') | |
sudo('make install') | |
with cd('thrift/contrib/fb303'): | |
# fb303 defined an init.d style interface over thrift, which | |
# scribe uses | |
run('./bootstrap.sh') | |
run('make') | |
sudo('make install') | |
with settings(warn_only=True): | |
run('rm -rf scribe') | |
# As of 4/14/2011 HEAD works fine | |
run('git clone https://github.com/facebook/scribe.git') | |
with cd('scribe'): | |
run('./bootstrap.sh') | |
run('make') | |
sudo('make install') | |
# None of these libraries seem to be aware of the transition to dist-packages | |
sudo('cp -r /usr/lib/python2.6/site-packages/* /usr/lib/python2.6/dist-packages/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment