944,155 Members | Top Members by Rank

Ad:
  • Ruby Discussion Thread
  • Unsolved
  • Views: 2609
  • Ruby RSS
Nov 9th, 2009
0

(Installed Ruby 1.9.1) gem isn't working

Expand Post »
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:
Ruby Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
michelle1 is offline Offline
14 posts
since Nov 2009
Nov 10th, 2009
0
Re: (Installed Ruby 1.9.1) gem isn't working
I forgot to add, I do have RUBYOPTS set.

C:\>echo %RUBYOPT%
rubygems
Last edited by michelle1; Nov 10th, 2009 at 12:31 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
michelle1 is offline Offline
14 posts
since Nov 2009
Nov 12th, 2009
0
Re: (Installed Ruby 1.9.1) gem isn't working
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.
Reputation Points: 18
Solved Threads: 21
Junior Poster
codejoust is offline Offline
180 posts
since Jul 2009
Nov 12th, 2009
0
Re: (Installed Ruby 1.9.1) gem isn't working
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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
michelle1 is offline Offline
14 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Ruby Forum Timeline: Mixing PHP and Ruby together... opinions and suggestions.
Next Thread in Ruby Forum Timeline: Create HTML files using RUBY





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC