我對Ruby的大一和現在想要http://wiki.openqa.org/display/WTR/Tutorial紅寶石寶石 - 運行時顯示的表彰寶石錯誤:寶石更新--system
根據教程我的機器上安裝Ruby然而,當我安裝ruby186-26,並運行命令「寶石更新--system」,出現以下錯誤:
C:\Documents and Settings\e482090\Desktop>gem 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:in `open'
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:in `new'
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:in `run'
from c:/ruby/bin/gem:23
C:\Documents and Settings\e482090\Desktop>gem 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:in `open'
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:in `new'
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:in `run'
from c:/ruby/bin/gem:23
同時,我們已在其他機器上嘗試這樣做,結果竟然ok了。
因此,我的問題是爲什麼錯誤發生在我的電腦上?你以前遇到過這種錯誤嗎?
THX貝利您的回覆。 但是,在刪除舊版本的Ruby並安裝新版本(版本1.9.1-p378)後,我們在命令控制檯中輸入以下命令,結果顯示: -------- ------------------- C:\ Documents and Settings \ e482090 \ Desktop> gem -v 1.3.7 C:\ Documents and Settings \ e482090 \ Desktop> gem update --system更新RubyGems 錯誤:執行gem時(Errno :: EINVAL) 無效參數 - ---------------------- ---------------- 我的環境是Windows XP Professional SP2,我的帳戶屬於管理員組。 –
Alex
2010-06-21 03:38:08