(Installed Ruby 1.9.1) can't get gem working

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

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

Hi Michelle,

On 10/11/2009 09:15, Michelle P. wrote:

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:

Charles

Thanks a lot Charles, works perfectly. :slight_smile:

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

C:>gem -v
1.3.5