Monday, March 22, 2010

Install Thrift on OSX Snow Leopard

These are my notes for installing Thrift on OSX Snow Leopard. The two pre-requisites are XCode with the 10.4 SDK, which is not installed by default and MacPorts. This is a mashup of three similar guides, none of which contained all of the necessary information to get up and running.

export LOG4J_PATH='/opt/local/share/java/jakarta-log4j.jar'
export THRIFT_URL=''
export THRIFT_PARAMS='?p=thrift.git;a=snapshot;h=HEAD;sf=tgz'
sudo port install boost
sudo port install jakarta-log4j
sudo port install pkgconfig
sudo port install libtool
echo "thrift.extra.cpath = ${LOG4J_PATH}" > ~/
curl "${THRIFT_URL}${THRIFT_PARAMS}" > thrift.tgz
tar xzf thrift.tgz
cd thrift
export CFLAGS="-arch i386 -m32"
cp /opt/local/share/aclocal/pkg.m4 aclocal/
./configure --prefix=/opt/local
sudo make install

Print this post

No comments: