(Installed Ruby 1.9.1) can't get gem working

M

Michelle Pace

Hello,

RUBY VERSION: ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]

SYSTEM(S): Windows XP Laptop; Windows XP Desktop

PROBLEM: 'gem' does not work on my desktop but does on my laptop despite
identical installations. On my Desktop I get this message for any gem
command I run:

C:/>gem -v
C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load
-- stringio (LoadError)
from C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `<top (required)>'
from C:/ruby1.9/lib/ruby/1.9.1/rubygems/config_file.rb:7:in `require'
from C:/ruby1.9/lib/ruby/1.9.1/rubygems/config_file.rb:7:in `<top
(required)>'
from C:/ruby1.9/lib/ruby/1.9.1/rubygems/gem_runner.rb:8:in `require'
from C:/ruby1.9/lib/ruby/1.9.1/rubygems/gem_runner.rb:8:in `<top
(required)>'
from C:/ruby1.9/bin/gem.bat:17:in `require'
from C:/ruby1.9/bin/gem.bat:17:in `<main>'


I also have this set on both Desktop and Laptop:

C:\>echo %RUBYOPT%
rubygems

I'd really appreciate any suggestions on how to fix this.Thank-you in
advance,
Michelle
 
C

Charles Roper

Hi Michelle,

RUBY VERSION: ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]

I would recommend using the new RubyInstaller instead of the old mswin32
version. Release Candidate 1 has just been released:

http://rubyinstaller.org/ -- note: ignore the "One-Click Installer -
Windows" section on the downloads page, look below that to the
"RubyInstaller" section instead.

It's a much more reliable way of running Ruby on Windows, especially for
1.9. If you combine it with Pik, you can easily switch between versions:

http://github.com/vertiginous/pik

Charles
 
M

Michelle Pace

Thanks a lot Charles, works perfectly. :)

C:\>ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32]

C:\>gem -v
1.3.5
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top