<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>max.lueb.be &#187; OS X</title>
	<atom:link href="http://lueb.be/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://lueb.be</link>
	<description>Thoughts on tech and other rants.</description>
	<lastBuildDate>Mon, 05 Apr 2010 17:00:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing Apache Thrift on Mac OS X 10.5 Leopard</title>
		<link>http://lueb.be/2009/02/23/installing-apache-thrift-on-mac-os-x-105-leopard/</link>
		<comments>http://lueb.be/2009/02/23/installing-apache-thrift-on-mac-os-x-105-leopard/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 20:00:13 +0000</pubDate>
		<dc:creator>mluebbe</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Thrift]]></category>

		<guid isPermaLink="false">http://lueb.be/?p=45</guid>
		<description><![CDATA[Thrift is a efficient RPC / cross-language serialization framework currently in the Apache Incubator. Installing it for development on OS X isn't completely straightforward however. In this post, a guide to get Thrift built on OS X Leopard!]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://lueb.be/2009/02/23/installing-apache-thrift-on-mac-os-x-105-leopard/";
		digg_bgcolor = "#FFFFFF";
		digg_skin = "";
		digg_window = "";
		digg_title = "Installing+Apache+Thrift+on+Mac+OS+X+10.5+Leopard";
		digg_media = "news";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p><a href="http://incubator.apache.org/thrift/" target="_blank">Thrift</a> is a efficient framework for cross-language serialization and RPC that recently became an<a href="http://incubator.apache.org/projects/thrift.html"> Apache Incubator project</a>. It&#8217;s definately a cool project to check out if you are building a high traffic web application or are writing distributed computing code. Installing the framework on OS X isn&#8217;t currently totally straightforward, provided below is a guide to get Thrift built on OS X Leopard.</p>
<p>First, gather required sources &#8211; Thrift depends on the <a href="http://www.boost.org/users/download/" target="_blank">Boost</a> and <a href="http://monkey.org/~provos/libevent" target="_blank">libevent</a> libraries, grab the latest revisions of each and then download the latest <a href="http://incubator.apache.org/thrift/download/" target="_blank">Thrift snapshot</a>.</p>
<p>Build Boost first:</p>
<pre class="wiki">cd [boost root]
./configure
sudo make install</pre>
<p>This takes a while, go make a cup of coffee &#8211; and when it finishes build libevent, which takes much less time:</p>
<pre class="wiki">cd [libevent root]
./configure
make
sudo make install</pre>
<p>At this point is where most Thrift builds will run into trouble, as the pkg.m4 file required by autoconf in upcoming steps does not get correctly found.The following error will be encountered when trying to configure the package:</p>
<pre>./configure: line 21183: syntax error near
unexpected token `MONO,'
./configure: line 21183: `  PKG_CHECK_MODULES(MONO, mono &gt;= 1.2.6,
have_mono=yes, have_mono=no)'</pre>
<p>The <a href="http://wiki.apache.org/thrift/FAQ" target="_blank">official faq</a> says that in order to get this file, one should install macports, and then use it to install pkg-config &#8211; but as macports is a colossal pain in the ass, we&#8217;ll do something else.  The pkg.m4 file is also installed when X11 is installed off the OS install disc, and since X11 is something you can&#8217;t live without if you&#8217;re working on or with mainstream open source software, that is the route we will take. After installing X11 (not shown here, because it just consists of running the installer package on the OS X disc), do the following to get pkg.m4 where it needs to be:</p>
<pre class="wiki">cd [thrift root]
cp /usr/X11/share/aclocal/pkg.m4 aclocal/</pre>
<p>After doing this, Thrift can build without issues, which will take some time, but not nearly as long as Boost did:</p>
<pre class="wiki">./bootstrap.sh
./configure
make
sudo make install</pre>
<p>Hope this helps anyone trying to write Thrift code on OS X!</p>
]]></content:encoded>
			<wfw:commentRss>http://lueb.be/2009/02/23/installing-apache-thrift-on-mac-os-x-105-leopard/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
