`report_activate_error': RubyGem version error
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 "Rails Developer" and as a matter of fact, I ran into this problem working through a "How to" books.
The issue
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't know anything about and you're trying to learn, wont work.
The Actual Error
When I try to create my first controller this is what happens
ruby script/generate controller main welcome
And this is what the system kicked out to me
/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 ~> 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
sudo gem uninstall rack
sudo gem uninstall rackRemove executables:rackupin addition to the gem? [Yn] YRemoving rackupYou have requested to uninstall the gem:rack-1.0.0actionpack-2.3.3 depends on [rack (~> 1.0.0)]actionpack-2.3.5 depends on [rack (~> 1.0.0)]If you remove this gems, one or more dependencies will not be met.Continue with Uninstall? [Yn] Y
sudo rm -rf /Library/Ruby/Gems/1.8/gems/rack-1.0.1/
sudo gem install -v=2.3.5 railssudo gem install rack