Friday, November 14, 2008

Installing Thrift on Mac OSX 10.5


There are few dependencies in the way to install Thrift. I'll list the ones I found and the way to install it. You may have some of the dependencies and so skip a step or two.

  • X11. Doesn't sound like something Thrift would care about. It is actually a dependency of Python and you need that for Boost and you need that for thrift :-) Download it, double click to install and reboot.
  • Fink.
  • Boost. From the command line, type 'fink install boost1.33'
  • Download and unzip Thrift.
  • Run the following from the command line:
$ cd {Thrift dir}
$ cp /usr/X11/share/aclocal/pkg.m4 aclocal/
$ ./bootstrap.sh
$ ./configure --with-boost=/sw/
$ make
$ sudo make install
That's it!
Now run the thrift toturial script and make sure you read the file:
$ cd tutorial/
$ ./tutorial.thrift

3 comments:

Sebastian February 6, 2009 at 2:44 AM  

Thanks, that helped. Maybe add this to the thrift wiki?

Eishay Smith February 6, 2009 at 9:30 AM  

Thanks, I'll try to do it.

Bhavin Patel December 25, 2009 at 7:28 PM  

I am getting error while installing X11 that "It has got some error" and that's why the installation is not able to continue.

so, is there any other way to install it ?

Thanks,
Bhavin

Creative Commons License This work by Eishay Smith is licensed under a Creative Commons Attribution 3.0 Unported License.