From: Leslie Viljoen Date: 2008-06-11T23:04:19+09:00 Subject: Re: require_gem is obsolete. Use gem instead On Wed, Jun 11, 2008 at 4:44 AM, Hazel Crato wrote: > Hi all, > > I'm trying to run r or ruby command and I'm using Windows Vista Home > Premium, Ruby version ruby 1.8.6 (2007-03-13 patchlevel 0) > [i386-mswin32], java version "1.6.0-oem" Java(TM) SE Runtime Environment > (build 1.6.0-oem-b104) > Java HotSpot(TM) Client VM (build 1.6.0-oem-b104, mixed mode, sharing) > > and I'm getting this: > > ./script/../config/boot.rb:38:Warning: require_gem is obsolete. Use gem > instead > . > c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:301:in > `report_activate_error': Could not find RubyGem rails (>= 0.0.0) > (Gem::LoadError) > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:238:in > `activate' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:76:in > `active_gem_with_options' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:61:in > `require_gem' > from ./script/../config/boot.rb:38 > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from > c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from script/server:2 > > In windows XP this did not happen. Can any of you help me? > > Many thanks in advance! > Hazel The error indicates that Rails might not be installed. Perhaps you copied your project over from XP and haven't yet installed Rails under Vista? The fact that require_gem is now obsolete is unrelated to this error - that's just a warning and can be ignored. Try "rails -v" on the command line. Try "gem list rails" via the "RubyGems package manager" prompt to see if the gem is installed. Les