我已经在一个没有空格的文件夹上安装了Ruby 2.0和一个Windows Ruby安装程序(rubyinstaller-2.0.0-p481-x64),解压缩的DevKit(DevKit-mingw64-64-4.7.2-20130224-1432-sfx) 但是当我运行ruby dk.rb init时,我收到了那条消息???
C:\devkit>ruby dk.rb init
C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:172:in 'find': unknown encoding name - CP720 (ArgumentError)
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:172:in 'initialize'
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:231:in 'exception'
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:231:in 'raise'
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:231:in 'check'
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:254:in 'OpenKey'
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:385:in 'open'
from C:/Ruby/lib/ruby/2.0.0/win32/registry.rb:496:in 'open'
from dk.rb:116:in 'block in scan_for'
from dk.rb:114:in 'each'
from dk.rb:114:in 'scan_for'
from dk.rb:136:in 'block in installed_rubies'
from dk.rb:136:in 'collect'
from dk.rb:136:in 'installed_rubies'
from dk.rb:144:in 'init'
from dk.rb:311:in 'run'
from dk.rb:330:in '<main>'
答案 0 :(得分:0)
C:\DevKit> chcp 1252
C:\DevKit> ruby dk.rb init