2

Win7(32ビット)のRubyコマンドプロンプトにrubygemsをインストールしようとすると、以下のエラーが発生しました。Ruby1.9.3をインストールし、devkit(DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe)をRubyにすでに追加していることに注意してください。

以下は私が試したすべてのものです:

 C:\devkit>ruby dk.rb init

 [INFO] found RubyInstaller v1.9.3 at C:/Ruby193

 Initialization complete! Please review and modify the auto-generated
 'config.yml' file to ensure it contains the root directories to all
 of the installed Rubies you want enhanced by the DevKit.

 C:\devkit>ruby dk.rb install

 [INFO] Updating convenience notice gem override for 'C:/Ruby193'
 [INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'

 C:\rubygems-1.8.24>ruby setup.rb install

 C:/rubygems-1.8.24/lib/rubygems/config_file.rb:53:in `sysconfdir': code converte
 r not found (UTF-16LE to Windows-1258) (Encoding::ConverterNotFoundError)
 from C:/rubygems-1.8.24/lib/rubygems/config_file.rb:53:in `<class:Config
 File>'
 from C:/rubygems-1.8.24/lib/rubygems/config_file.rb:30:in `<top (require
 d)>'
 from C:/rubygems-1.8.24/lib/rubygems/custom_require.rb:36:in `require'
 from C:/rubygems-1.8.24/lib/rubygems/custom_require.rb:36:in `require'
 from C:/rubygems-1.8.24/lib/rubygems/gem_runner.rb:9:in `<top (required)>'
 from C:/rubygems-1.8.24/lib/rubygems/custom_require.rb:36:in `require'
 from C:/rubygems-1.8.24/lib/rubygems/custom_require.rb:36:in `require'
 from setup.rb:28:in `<main>'
4

1 に答える 1

5

[地域と言語のオプション]ウィンドウの[詳細設定]タブのドロップダウンリストで以前のように[ベトナム]ではなく、ドロップダウンリストで[英語(米国)]を選択することでこの問題を自分で解決しました。その後、問題は修正されました。 。

于 2012-12-03T13:48:41.577 に答える