<?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>Ian McShane &#187; Leopard</title>
	<atom:link href="http://www.ianmcshane.org/tag/leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ianmcshane.org</link>
	<description>All my stuff in one place</description>
	<lastBuildDate>Sun, 14 Mar 2010 00:11:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ruby on Rails, mySQL, Mongrel and OS X Leopard</title>
		<link>http://www.ianmcshane.org/2007/11/25/ruby-on-rails-mysql-mongrel-and-os-x-leopard/</link>
		<comments>http://www.ianmcshane.org/2007/11/25/ruby-on-rails-mysql-mongrel-and-os-x-leopard/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 02:33:55 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Macbook]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Switch to Mac]]></category>

		<guid isPermaLink="false">http://blog.maccarocks.com/2007/11/25/ruby-on-rails-mysql-mongrel-and-os-x-leopard/</guid>
		<description><![CDATA[For the majority of my RoR development, i&#8217;ve used a Windows machine running Instant Rails.   Apparently, the Mac is the so-called &#8220;favoured platform&#8221; for Ruby on Rails development so i&#8217;ve been looking forward to getting rolling with this on my shiny Macbook.  However, i&#8217;ve spent a couple of days scouring Google and [...]


Related posts:<ol><li><a href='http://www.ianmcshane.org/2007/11/30/radrails-unable-to-detect-ruby-install-on-os-x-leopard/' rel='bookmark' title='Permanent Link: RadRails &#8211; Unable to detect ruby install on OS X Leopard'>RadRails &#8211; Unable to detect ruby install on OS X Leopard</a></li>
<li><a href='http://www.ianmcshane.org/2007/12/07/quicksilver-roadmap-at-the-end/' rel='bookmark' title='Permanent Link: Quicksilver roadmap at the end'>Quicksilver roadmap at the end</a></li>
<li><a href='http://www.ianmcshane.org/2007/12/13/vmware-fusion-and-network-bridging/' rel='bookmark' title='Permanent Link: VMWare Fusion and network bridging'>VMWare Fusion and network bridging</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>For the majority of my RoR development, i&#8217;ve used a Windows machine running <a href="http://instantrails.rubyforge.org/wiki/wiki.pl">Instant Rails</a>.   Apparently, the Mac is the so-called <a href="http://developer.apple.com/tools/rubyonrails.html">&#8220;favoured platform&#8221;</a> for Ruby on Rails development so i&#8217;ve been looking forward to getting rolling with this on my shiny Macbook.  However, i&#8217;ve spent a couple of days scouring Google and Groups trying to find the optimum way to get everything set up and running.  There isn&#8217;t much information where Leopard is concerned, most of the posts and articles are geared toward Tiger and involve building and compiling Ruby from source with XCode.</p>
<p>Well, i&#8217;ve got mine environment up and running so hopefully this will save someone else a bit of time.   Of course, that does assume that i&#8217;ve done this all in the correct manner!  Any corrections or updates welcome! <img src='http://www.ianmcshane.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span id="more-71"></span></p>
<p>Firstly, it&#8217;s quite well <a href="http://trac.macosforge.org/projects/ruby/wiki/WhatsNewInLeopard">documented</a> that OS X 10.5 comes with Ruby, Rails and all kinds of other goodness ready to go out of the box.  You can get a rails template app built and served by entering three lines into Terminal:</p>
<blockquote><p>rails myWickedAceApp</p>
<p>cd myWickedAceApp</p>
<p>ruby scripts/server</p></blockquote>
<p>Get your browser to http://localhost:3000 and you&#8217;ll see the Welcome Aboard page..</p>
<p><img src="http://blog.maccarocks.com/wp-content/uploads/2007/11/mywickedaceapp.jpg" alt="myWickedAceApp" /></p>
<p>Pretty neat as apparently there were some problems with prior versions of OS X having a version of Ruby that was in some way incompatible with Rails.<br />
You&#8217;ll need to add some code behind this template or all you have is a nice page with some AJAX in there for fun!  You&#8217;ll probably also need a database application of some sorts, such as mySQL (other database apps may be available, <a href="http://en.wiktionary.org/wiki/YMMV">YMMV</a>).</p>
<p>Google brings up all kinds of problems with the OS X dmg package of mySQL 5.0.45, there&#8217;s even a <a href="http://bugs.mysql.com/bug.php?id=28854">defect logged for it</a>. (First bugged back in June but closed because mySQL didn&#8217;t have access to the Apple Developers programme!)<br />
I have to say though, my installation of it worked fine.  I installed both mySQL and the StartUp packages, ran &#8220;chmod -R 777 /usr/local/mysql&#8221; and rebooted.</p>
<p><a title="mySQL on Leopard" href="http://blog.maccarocks.com/wp-content/uploads/2007/11/leopard_and_mysql.jpg"><img src="http://blog.maccarocks.com/wp-content/uploads/2007/11/leopard_and_mysql.thumbnail.jpg" alt="mySQL on Leopard" /></a></p>
<p>No problems there.</p>
<p>In the current absence of a SVN client (I haven&#8217;t gotten around to sorting that out yet, i&#8217;m sure there is one around) I quickly grabbed a copy of the production code and imported a DB dump locally.  (&#8220;mysql %DATABASE% &lt; database.bak&#8221;)</p>
<p>Again, worked straight off of the bat.  So, currently, I can&#8217;t see what the fuss is about.  Nor why there aren&#8217;t any quick start guides for Leopard.</p>
<p>(I&#8217;ll re-iterate, i&#8217;m still pretty new to OS X so I may well have missed/cocked up something here)</p>
<p>[tags]Switch To Mac, OS X, Ruby on Rails, Macbook, mySQL, Leopard[/tags]</p>


<p>Related posts:<ol><li><a href='http://www.ianmcshane.org/2007/11/30/radrails-unable-to-detect-ruby-install-on-os-x-leopard/' rel='bookmark' title='Permanent Link: RadRails &#8211; Unable to detect ruby install on OS X Leopard'>RadRails &#8211; Unable to detect ruby install on OS X Leopard</a></li>
<li><a href='http://www.ianmcshane.org/2007/12/07/quicksilver-roadmap-at-the-end/' rel='bookmark' title='Permanent Link: Quicksilver roadmap at the end'>Quicksilver roadmap at the end</a></li>
<li><a href='http://www.ianmcshane.org/2007/12/13/vmware-fusion-and-network-bridging/' rel='bookmark' title='Permanent Link: VMWare Fusion and network bridging'>VMWare Fusion and network bridging</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.ianmcshane.org/2007/11/25/ruby-on-rails-mysql-mongrel-and-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
