[Ruby] [gem] A GEM error shown during run the commend: gem update --system
- by Alex
I’m a freshman on Ruby and now trying to install ruby on my machine according to the Tutorial on http://wiki.openqa.org/display/WTR/Tutorial
However, after I installed the ruby186-26, and run the command “gem update --system”, the following error occurred:
C:\Documents and Settings\e482090\Desktopgem update --system
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initialize': Inval
id argument - <Not Set>/.gemrc (Errno::EINVAL)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:inopen'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initi
alize' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:innew'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:in do_con
figuration' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:25:inrun'
from c:/ruby/bin/gem:23
C:\Documents and Settings\e482090\Desktopgem install watir
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initialize': Inval
id argument - <Not Set>/.gemrc (Errno::EINVAL)
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:inopen'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:51:in initi
alize' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:innew'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:36:in do_con
figuration' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:25:inrun'
from c:/ruby/bin/gem:23
Meanwhile, we have tried this on other machines and the result turned out ok.
Thus, my question is why the error happened on my pc? Have you met this kind of error before?