<?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>Made of String &#187; Mac OS X</title>
	<atom:link href="http://madeofstring.co.uk/tag/macosx/feed/" rel="self" type="application/rss+xml" />
	<link>http://madeofstring.co.uk</link>
	<description>Still not a very good programmer despite all that tea</description>
	<lastBuildDate>Sun, 29 Jan 2012 21:29:09 +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>Rails and MySQL on Snow Leopard</title>
		<link>http://madeofstring.co.uk/article/rails-and-mysql-on-snow-leopard/</link>
		<comments>http://madeofstring.co.uk/article/rails-and-mysql-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 21:11:22 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rubyonrails]]></category>
		<category><![CDATA[snowleopard]]></category>

		<guid isPermaLink="false">http://madeofstring.co.uk/?p=92</guid>
		<description><![CDATA[It was a struggle, but we got there in the end. The background to this was that I tried to upgrade my Rails install from 2.3.3 to 2.3.5 using the Rails wiki Getting Started guide, and then started running into problems. Ooh look, here it is:
Library/Ruby/Site/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: rack(1.0.0 not ~&#62; 1.0.1) (Gem::LoadError)
&#8230;which [...]]]></description>
			<content:encoded><![CDATA[<p>It was a struggle, but we got there in the end. The background to this was that I tried to upgrade my Rails install from 2.3.3 to 2.3.5 using the <a href="http://wiki.rubyonrails.org/getting-started/installation/mac">Rails wiki Getting Started guide</a>, and then started running into problems. Ooh look, here it is:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Library/Ruby/Site/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: rack(1.0.0 not ~&gt; 1.0.1) (Gem::LoadError)</div></div>
<p>&#8230;which meant I had the wrong version of Rack installed. To be fair, that&#8217;s bleedin&#8217; obvious from the error message. How often do you get an error message that clear? For Rails 2.3.5, Rack 1.01 is the right one, so uninstall Rack, all versions:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[e@lemons ~/ruby/project]$ sudo gem uninstall rack<br />
<br />
Select gem to uninstall:<br />
&nbsp;1. rack-1.1.0<br />
&nbsp;2. rack-1.0.0<br />
&nbsp;3. All versions<br />
&gt; 3<br />
Remove executables:<br />
&nbsp; &nbsp; rackup<br />
<br />
in addition to the gem? [Yn] &nbsp;Y<br />
Removing rackup<br />
Successfully uninstalled rack-1.1.0</div></div>
<p>&#8230;and then installed Rack v1.01:</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">[e@lemons ~/ruby/project]$ sudo gem install rack -v 1.0.1<br />
Successfully installed rack-1.0.1<br />
1 gem installed<br />
Installing ri documentation for rack-1.0.1...<br />
Installing RDoc documentation for rack-1.0.1...</div></div>
<p>which all helped. But then I tried to to do rake db:create using MySQL and got no joy. So I ended up&#8230;</p>
<ol>
<li>Installing XCode from the Snow Leopard DVD. Yes, even if you installed it under Leopard. </li>
<li>Download the latest 64-bit MySQL DMG from the <a href="http://www.mysql.com/downloads/mysql/">MySQL download area</a> &#8211; yes, that&#8217;s 64-bit</li>
<li>In Terminal&#8230; <code class="codecolorer text blackboard"><span class="text">sudo gem update --system</span></code></li>
<li>And then&#8230; <code class="codecolorer text blackboard"><span class="text">sudo env ARCHFLAGS=&quot;-arch x86_64&quot; gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</span></code></li>
</ol>
<p>And with this I could create my MySQL database using rake, and start it up as usual. All done by 11.30pm on a school night, ow.</p>
]]></content:encoded>
			<wfw:commentRss>http://madeofstring.co.uk/article/rails-and-mysql-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trouble with MAMP &#8211; &#8220;You don&#8217;t have permission to access /MAMP/ on this server.&#8221;</title>
		<link>http://madeofstring.co.uk/article/trouble-with-mamp-you-dont-have-permission-to-access-mamp-on-this-server/</link>
		<comments>http://madeofstring.co.uk/article/trouble-with-mamp-you-dont-have-permission-to-access-mamp-on-this-server/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 21:40:49 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://madeofstring.co.uk/?p=28</guid>
		<description><![CDATA[Don&#8217;t tell me, you&#8217;ve just installed Wordpress on your local MAMP setup and it&#8217;s all gone wrong &#8211; you can no longer get to phpmyadmin and the MAMP setup page generally.
Check the root of your Mac hard disk &#8211; there should be a .htaccess file lurking there, with contents that include&#8230;
Options All -Indexes

# BEGIN WordPress
&#60;IfModule [...]]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t tell me, you&#8217;ve just installed Wordpress on your local MAMP setup and it&#8217;s all gone wrong &#8211; you can no longer get to phpmyadmin and the MAMP setup page generally.</p>
<p>Check the root of your Mac hard disk &#8211; there should be a .htaccess file lurking there, with contents that include&#8230;</p>
<div class="codecolorer-container text blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Options All -Indexes<br />
<br />
# BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
... (and so on...)</div></div>
<p>Delete this file, or rename it if you&#8217;re not happy about doing that. Go to your MAMP start page and everything should be OK again. Time for a celebratory cup of tea.</p>
<p><strong>Update 16th Feb</strong>: <a href="http://benfrain.com/notepad/2010/02/mamp-error-–-“you-don’t-have-permission-to-access-mamp-on-this-server”.html">Ben Frain</a> notes that you might not see the .htaccess in your root folder because it&#8217;s a hidden file &#8211; his blog post details the Terminal command you need to show all files.</p>
]]></content:encoded>
			<wfw:commentRss>http://madeofstring.co.uk/article/trouble-with-mamp-you-dont-have-permission-to-access-mamp-on-this-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

