<?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>SHOCM &#187; RoR</title>
	<atom:link href="http://www.shocm.com/tag/ror/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shocm.com</link>
	<description>Open Source, Cloud, Scotch, Baseball, Family, and Programming since the 1900&#039;s</description>
	<lastBuildDate>Fri, 27 Apr 2012 15:24:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>&#8216;report_activate_error&#8217;: RubyGem version error</title>
		<link>http://www.shocm.com/2010/03/report_activate_error-rubygem-version-error/</link>
		<comments>http://www.shocm.com/2010/03/report_activate_error-rubygem-version-error/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 05:55:19 +0000</pubDate>
		<dc:creator>Shocm</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Geek Stuff]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.vanjohnson.com/2010/report_activate_error-rubygem-version-error/</guid>
		<description><![CDATA[<p>So from time to time I will post small things to my blog that I just want to keep track of or remember how I did something. This is one of those post. I should prefix this post to anyone who happens to come across it and read it, I am by no means a [...]]]></description>
			<content:encoded><![CDATA[<p>So from time to time I will post small things to my blog that I just want to keep track of or remember how I did something. This is one of those post. I should prefix this post to anyone who happens to come across it and read it, I am by no means a &#8220;Rails Developer&#8221; and as a matter of fact, I ran into this problem working through a &#8220;How to&#8221; books.</p>
<p><strong>The issue</strong></p>
<p>I am running OSX 10.6.2 and although I had Ruby on Rails working on it at one time, some how, some where it broke. Now there is nothing more frustrating to a n00b who is trying to work through a tutorial on how to learn a new programming language and not being able to get past the first chapter because something about the base install of the programming language that you don&#8217;t know anything about and you&#8217;re trying to learn, wont work.</p>
<p><strong>The Actual Error</strong></p>
<p>When I try to create my first controller this is what happens</p>
<pre class="brush: bash; title: ; notranslate">
ruby script/generate controller main welcome
</pre>
<p>And this is what the system kicked out to me</p>
<pre class="brush: bash; title: ; notranslate">
/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': RubyGem version error: rack(1.0.0 not ~&amp;gt; 1.0.1) (RuntimeError)

from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:134:in `process'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `send'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in `run'
from /Users/eric/Dropbox/Code/Rails/r4music1/config/environment.rb:9
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from /Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/commands/generate.rb:1
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
from script/generate:3
</pre>
<p><strong>Sidebar</strong><br />
Naturally, the first thing I do is start hitting Google and start clicking on links. A lot of similar issues with a wide variety of solutions. From just doing a simple &#8216;sudo gem update&#8217;, to making sure rake is installed, to making sure you have the correct rake version installed. None of which worked for me. Finally, I stumbled onto <a id="aptureLink_gSZtw9Nlmz" href="http://christopher.wojno.com/2010/02/14/ruby-on-rails-rack-1-0-0-not-rack-1-0-1-c">Wojno&#8217; Site</a> and following the steps in his <a href="http://christopher.wojno.com/2010/02/14/ruby-on-rails-rack-1-0-0-not-rack-1-0-1-c">post</a> I manage to resolve my problem.</p>
<p><strong>The Fix</strong><br />
If you didn&#8217;t want to click on <a href="http://christopher.wojno.com/2010/02/14/ruby-on-rails-rack-1-0-0-not-rack-1-0-1-c">Wonjno&#8217;s link</a> here are the steps that fixed my problem. Had to change a couple of things because my install paths were a little different since I was running a different OS.<br />
We begin by uninstalling the problem package </p>
<pre class="brush: bash; title: ; notranslate">
sudo gem uninstall rack
</pre>
<p>When prompted, make sure you remove all versions of the rack packages. Now this is one place where my experience differed a little. I ended up getting prompted to uninstall rails itself. I&#8217;m a brave soul, that didn&#8217;t scare me, so yeah I uninstalled it.<br />
Here is what that looked like</p>
<pre class="brush: bash; title: ; notranslate">
sudo gem uninstall rack
Remove executables: rackup in addition to the gem? [Yn]  Y
Removing rackup
You have requested to uninstall the gem: rack-1.0.0
actionpack-2.3.3 depends on [rack (~&amp;gt; 1.0.0)]
actionpack-2.3.5 depends on [rack (~&amp;gt; 1.0.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  Y
</pre>
<p>OK, that was a little scary but we will fix it.<br />
I did manually remove the directory for the older version of rack</p>
<pre class="brush: bash; title: ; notranslate">
sudo rm -rf /Library/Ruby/Gems/1.8/gems/rack-1.0.1/
</pre>
<p>Now we reinstall things. Don&#8217;t forget we need to reinstall the rails itself</p>
<pre class="brush: bash; title: ; notranslate">
sudo gem install -v=2.3.5 rails
sudo gem install rack
</pre>
<p>After that, life was good, at least for me. If you found this article and actually read it in hopes that it helped fix your issue, well then I hope you had some success as well.</p>
<p style="font-size: 10px;"><a href="http://posterous.com">Posted via web</a> from <a href="http://shocm.posterous.com/reportactivateerror-rubygem-version-error">shocm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.shocm.com/2010/03/report_activate_error-rubygem-version-error/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

