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='http://gitweb.thrift-rpc.org/' 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}" > ~/.thrift-build.properties curl "${THRIFT_URL}${THRIFT_PARAMS}" > thrift.tgz tar xzf thrift.tgz cd thrift export CFLAGS="-arch i386 -m32" export CXXFLAGS="$CFLAGS" cp /opt/local/share/aclocal/pkg.m4 aclocal/ ./bootstrap.sh ./configure --prefix=/opt/local make sudo make installPrint this post
No comments:
Post a Comment