gpt4 book ai didi

ruby - 在 Win7 的 ruby​​ 命令提示符下安装 Rubygems 时出错

转载 作者:数据小太阳 更新时间:2023-10-29 08:33:08 24 4
gpt4 key购买 nike

尝试在 Win7(32 位)的 Ruby 命令提示符下安装 ruby​​gems 时出现以下错误。请注意,我已经安装了 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>'

最佳答案

我自己解决了这个问题,方法是在下拉列表中选择“英语(美国)”,而不是像以前在“区域和语言选项”窗口的“高级”选项卡的下拉列表中选择“越南”,然后问题已修复。

关于ruby - 在 Win7 的 ruby​​ 命令提示符下安装 Rubygems 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13570226/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com