Require_gem is obsolete. Use gem instead

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™ SE Runtime Environment
(build 1.6.0-oem-b104)
Java HotSpot™ 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:inactivate’
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:inrequire_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:inrequire’
from script/server:2

In windows XP this did not happen. Can any of you help me?

Many thanks in advance!
Hazel

On Wed, Jun 11, 2008 at 4:44 AM, Hazel C. [email protected]
wrote:

./script/…/config/boot.rb:38:Warning: require_gem is obsolete. Use gem
`require_gem’

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

Thank you Leslie,

Indeed I did not install Rails, but I thought it was unnecessary. In XP
it not installed either or at least does not seems to be. When I try
“rails -v” in both cases I get:

‘rails’ is not recognized as an internal or external command, operable
program or batch file.

I’ll install rails anymore and then tell here if it is OK.

Thank you very much.

Hazel

Leslie,

something more. I’m using HyperDE, an application that has its
directories structured as same as in Rails, that is why I don’t need to
install it.

I will check directories.

Thank you.
Hazel

Hazel C. wrote:

Thank you Leslie,

Indeed I did not install Rails, but I thought it was unnecessary. In XP
it not installed either or at least does not seems to be. When I try
“rails -v” in both cases I get:

‘rails’ is not recognized as an internal or external command, operable
program or batch file.

I’ll install rails anywere and then tell here if it is OK.

Thank you very much.

Hazel