(Installed Ruby 1.9.1) gem isn't working

Reply

Join Date: Nov 2009
Posts: 10
Reputation: michelle1 is an unknown quantity at this point 
Solved Threads: 0
michelle1 michelle1 is offline Offline
Newbie Poster

(Installed Ruby 1.9.1) gem isn't working

 
0
  #1
Nov 9th, 2009
Hello there,

Ruby Version Installed: ruby 1.9.1 (2008-10-28 revision 19983) [i386-mswin32]
Operating Systems: Windows XP (both PC and laptop)

Laptop: I can run a gem command on with no problem
PC: gem won't work despite that ruby works fine. I get this message for any gem command:
  1. % gem -v
  2. C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load -- stringio (LoadError)
  3. from C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `<top (required)>'
  4. from C:/ruby1.9/lib/ruby/1.9.1/rubygems/config_file.rb:7:in `require'
  5. from C:/ruby1.9/lib/ruby/1.9.1/rubygems/config_file.rb:7:in `<top (required)>'
  6. from C:/ruby1.9/lib/ruby/1.9.1/rubygems/gem_runner.rb:8:in `require'
  7. from C:/ruby1.9/lib/ruby/1.9.1/rubygems/gem_runner.rb:8:in `<top (required)>'
  8. from C:/ruby1.9/bin/gem.bat:17:in `require'
  9. from C:/ruby1.9/bin/gem.bat:17:in `<main>'
  10.  
It is the exact same installation as on my laptop (where gem works). All the above files are in the installation. Perhaps an environment variable somewhere that has not been set?

I'm at a loss here, I'd *really* appreciate any help or suggestions on how to fix this. I'm hitting my 5th hour here of pulling out my hair.

Thanks in advance,
Michelle
Last edited by michelle1; Nov 9th, 2009 at 11:52 pm. Reason: formatting
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 10
Reputation: michelle1 is an unknown quantity at this point 
Solved Threads: 0
michelle1 michelle1 is offline Offline
Newbie Poster
 
0
  #2
Nov 10th, 2009
I forgot to add, I do have RUBYOPTS set.

C:\>echo %RUBYOPT%
rubygems
Last edited by michelle1; Nov 10th, 2009 at 12:31 am.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 180
Reputation: codejoust is an unknown quantity at this point 
Solved Threads: 19
codejoust's Avatar
codejoust codejoust is offline Offline
Junior Poster
 
0
  #3
33 Days Ago
It looks like your YAML class is corrupted. Try reinstalling ruby:
C:/ruby1.9/lib/ruby/1.9.1/yaml.rb:9:in `require': no such file to load -- stringio (LoadError) means that the stringio library is missing, and essential for yaml to run, which is essential for rubygems to run.
Reply With Quote Quick reply to this message  
Join Date: Nov 2009
Posts: 10
Reputation: michelle1 is an unknown quantity at this point 
Solved Threads: 0
michelle1 michelle1 is offline Offline
Newbie Poster
 
0
  #4
33 Days Ago
Thanks for your reply, ja you're absolutely right.

A few days ago I followed the suggestion of using the RubyInstaller instead of the old mswin32 version from http://rubyinstaller.org/ (NOT th "One-Click Installer)

It works perfectly now.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



Tag cloud for Ruby
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC