[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

require_gem is obsolete. Use gem instead

Hazel Crato

6/11/2008 2:44:00 AM

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
3 Answers

Leslie Viljoen

6/11/2008 2:04:00 PM

0

On Wed, Jun 11, 2008 at 4:44 AM, Hazel Crato <hazelcrato@gmail.com> 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

Hazel Crato

6/11/2008 4:40:00 PM

0

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

--
Posted via http://www.ruby-....

Hazel Crato

6/11/2008 7:25:00 PM

0

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 Crato 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

--
Posted via http://www.ruby-....