<?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>Fighting Rabbits &#187; os x</title>
	<atom:link href="http://fightingrabbits.com/archives/tag/os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://fightingrabbits.com</link>
	<description>and herding cats...</description>
	<lastBuildDate>Wed, 23 Jun 2010 12:28:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Django on Snow Leopard</title>
		<link>http://fightingrabbits.com/archives/266</link>
		<comments>http://fightingrabbits.com/archives/266#comments</comments>
		<pubDate>Sun, 04 Oct 2009 10:24:15 +0000</pubDate>
		<dc:creator>Richard Cooper</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Setup]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[easy_install]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[Software.]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://fightingrabbits.com/?p=266</guid>
		<description><![CDATA[Having just been given an new MacBook Pro as an early birthday present, it didn&#8217;t take me long to try and install Django on it. Rather than use the MacPorts solution I decided to use the native python 2.6 and build the rest, apart from MySQL (use the Mac OS X 10.5 (x86_64) package from [...]]]></description>
			<content:encoded><![CDATA[<p>Having just been given an new MacBook Pro as an early birthday present, it didn&#8217;t take me long to try and install Django on it. Rather than use the MacPorts solution I decided to use the native python 2.6 and build the rest, apart from MySQL (use the Mac OS X 10.5 (x86_64) package from <a href="http://dev.mysql.com/downloads/mysql/5.1.html#downloads">here</a>)</p>
<p>Before proceeding make sure that you have installed XCode (It&#8217;s on the Snow Leopard install disc) as we need it to install libjpeg and PIL (all of my Django projects use this!)</p>
<p>Download <a href="http://freshmeat.net/urls/6228c609a20bb6f87b2fef4fd4b6a30c">libjpeg</a> then:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzf</span> jpegsrc-1.v7.tar
<span style="color: #7a0874; font-weight: bold;">cd</span> jpegsrc-1.v7
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">which</span> glibtool<span style="color: #000000; font-weight: bold;">`</span> .<span style="color: #000000; font-weight: bold;">/</span>libtool
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #c20cb9; font-weight: bold;">env</span> MACOSX_DEPLOYMENT_TARGET <span style="color: #000000;">10.6</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-shared</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Now we can download the <a href="http://effbot.org/media/downloads/Imaging-1.1.6.tar.gz">source</a> and build PIL</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzf</span> Imaging-1.1.6.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> Imaging-1.1.6
<span style="color: #c20cb9; font-weight: bold;">sudo</span> python setup.py <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>Last thing to do before we install Django is to install the MySqlDb connector &#8211; you will need to do add the following to your .bash_profile</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">${PATH}</span>:/usr/local/mysql/bin&quot;</span></pre></div></div>

<p>Then:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install mysql-python</pre></div></div>

<p>Now we can easy_install Django:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> easy_install django</pre></div></div>

<p>and we are all set to go :)</p>
<p>Thanks to these guys for the help in figuring this out:<br />
<a href="http://dryan.com/articles/snow-leopard-64bit-mamp/">http://dryan.com/</a><br />
<a href="http://www.brambraakman.com/blog/comments/installing_mysql_python_mysqldb_on_snow_leopard_mac_os_x_106/">http://www.brambraakman.com/blog/</a><br />
<a href="http://colbypalmer.com/index.php?/colbyworld/blogEntry/install_libjpeg_and_pil_on_os_x_leopard/">http://colbypalmer.com/</a><br />
<a href="http://www.agapow.net/programming/python/installing-mysqldb">http://www.agapow.net/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fightingrabbits.com/archives/266/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
