Skip to content

Instantly share code, notes, and snippets.

@dehora
Created July 7, 2011 20:17
Show Gist options
  • Save dehora/1070448 to your computer and use it in GitHub Desktop.
Save dehora/1070448 to your computer and use it in GitHub Desktop.
build-scribe-2.2.tar.gz

Did this to build scribe-2.2.tar.gz

Get thrift 0.5.0 instead of 0.6.1/0:

sudo apt-get install php5-dev
sudo apt-get install php-config # *-php=no didn't quite work out for me
sudo ./configure --with-haskell=no  # with-haskell=for-great-good did NOT work

and then configure/make/install thrift and fb303

open the scribe-2.2.tar.gz with nautilus because its top level folder was '.' - http://www.youtube.com/watch?v=IaUfuXBOb3U

In scribe/src/Makefile.am replace:

$(eval $(call thrift_template,.,$(srcdir)/../if/scribe.thrift, -I $(fb303_home)/share/ --cpp --py --php))

with:

$(eval $(call thrift_template,.,$(srcdir)/../if/scribe.thrift, -I $(fb303_home)/share/ --gen cpp:pure_enums --gen py --gen php --gen java))

hat tip: http://groups.google.com/group/scribe-server/msg/42d27696562919d9?

and then configure/make/install

run:

sudo ldconfig

to pick up the new shared libraries

This music was helpful

And in general I recommend building gnarly native stuff to 80s music.

<p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment