require_gem is obsolete. Use gem instead

H

Hazel Crato

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
 
L

Leslie Viljoen

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
 
H

Hazel Crato

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
 
H

Hazel Crato

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top