Differences between revisions 15 and 16
Revision 15 as of 2012-01-05 05:47:40
Size: 2476
Editor: 150
Comment: iPhone OS -> iOS
Revision 16 as of 2013-03-15 01:08:54
Size: 2527
Editor: c-98-207-105-176
Comment: better for the search ;
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from ThriftInstallationMacOSX

NOTE: Macports has a Thrift package, which greatly simplifies the installation of Thrift. Install Macports, then run sudo port install thrift

This page describes the installation of thrift on a MacOS X machine. Thrift works for Mac OS applications and iOS apps. For information on using thrift with Objective-C see ThriftUsageObjectiveC. That page also covers the issues on using thrift with the iOS SDK. There are some pitfalls to overcome with the iOS SDK that will be mentioned there.

We assume, you have at least Mac OS X 10.5.5.

Install boost

To compile the thrift generator on Mac OS X you need the boost libary and compile it locally.

You can get the boost sources here: http://sourceforge.net/projects/boost/files/

So please download the bzip2 of boost and unpack it afterwards in your downloads folder.

on the console run:




if everything compiled, run

./bjam install

You are now ready to get and compile thrift.

Install thrift

Get the latest thrift stable version here: http://incubator.apache.org/thrift/download/ or the latest HEAD version here: http://gitweb.thrift-rpc.org/?p=thrift.git;a=snapshot;h=HEAD;sf=tgz

Unpack the tgz file and change to the thrift directory



(omit this step for 0.2.0, see bug ticket - works again in 0.3.0)



You will certainly get an error looking like this:

./configure: line 20681: syntax error near unexpected token MONO,' ./configure: line 20681:  PKG_CHECK_MODULES(MONO, mono >= 2.0.0, net_3_5=yes, net_3_5=no)'

This error sounds strange but the reason is - you are missing the pgkconfig tool on your mac. To see further details how to solve this problem, please refer to the FAQ

After installing Darwinports and then pkgconfig you should be finally ready to go (Do not forget to copy pkg.m4 to thrift/aclocal like described in the FAQ). You need to run the bootstrap.sh and configure script again before you can compile thrift. Do that and then:



if the compilation is successful - be happy and install thrift by running

make install

You should be able to run thrift from the command line now

Thrift Installation - MacOSX (last edited 2013-03-15 01:08:54 by c-98-207-105-176)