Here is some help for the folks just learning Rails I am following the Sitepoint book by Patrick Lenz "Simply Rails 2" and received an error message when attempting to run the command "rails shovell" to create a new rails application. I got a load error. Note: remember to use a Ruby Console Window. run the updates: gem update gem update --system gem install rails gem install Ruby without installing rails you''ll get an error as shown below. error shown here: C:\InstantRails\rails_apps>rails shovell C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `report_activate_ error'': Could not find RubyGem rack (~> 1.0.0) (Gem::LoadError) from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:261:in `act ivate'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `act ivate'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `eac h'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `act ivate'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:296:in `act ivate'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `eac h'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:295:in `act ivate'' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:68:in `gem'' from C:/InstantRails/ruby/bin/rails:18 C:\InstantRails\rails_apps> Here are my environment details: use "gem env" to view your own environment settings. Vista Professional C:\InstantRails\rails_apps>gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.5 - RUBY VERSION: 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] - INSTALLATION DIRECTORY: C:/InstantRails/ruby/lib/ruby/gems/1.8 - RUBY EXECUTABLE: C:/InstantRails/ruby/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/InstantRails/ruby/bin - RUBYGEMS PLATFORMS: - ruby - x86-mswin32-60 - GEM PATHS: - C:/InstantRails/ruby/lib/ruby/gems/1.8 - C:/Users/joel/.gem/ruby/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ -- Posted via http://www.ruby-forum.com/.
Roger Pack
2009-Aug-03 13:06 UTC
Re: Could not find RubyGem rack (~> 1.0.0) (Gem::LoadError)
> error'': Could not find RubyGem rack (~> 1.0.0) (Gem::LoadError) > fromgem install rake? however, it should have installed rake gem because rake gem is a dependency of rails, so...maybe "gem install rails" will get you the right version. =r -- Posted via http://www.ruby-forum.com/.