Ruby Windows Devkit 安装错误

Ruby Devkit install error on Windows

我没有 Ruby200 和 Ruby64 等目录。几个月前我安装了它们。但是我都删除了。 现在我正在尝试安装 ruby v2.2.6(86) 并使用 devkit。但是有一些错误,例如 "Skipping invalid directory" 我必须做什么?

C:\Ruby22\devkit>ruby dk.rb init

[INFO] found RubyInstaller v2.0.0 at C:/Ruby200
[INFO] found RubyInstaller v2.2.6 at C:/Ruby22
[INFO] found RubyInstaller v2.3.3 at C:/Ruby64
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:\Ruby22\devkit>ruby dk.rb install -f

[ERROR] Skipping invalid directory 'C:/Ruby200'
[WARN] Updating (with backup) existing gem override for 'C:/Ruby22'
[WARN] Updating (with backup) DevKit helper library for 'C:/Ruby22'
[ERROR] Skipping invalid directory 'C:/Ruby64'

它也有问题

C:\Ruby22\devkit>ruby dk.rb install

[ERROR] Skipping invalid directory 'C:/Ruby200'
[INFO] Updating convenience notice gem override for 'C:/Ruby22'
[INFO] Installing 'C:/Ruby22/lib/ruby/site_ruby/devkit.rb'
[ERROR] Skipping invalid directory 'C:/Ruby64'

DevKit 脚本查看在 Ruby 安装程序安装期间设置的一些注册表项。

当您删除其他 Ruby 安装时,您只是删除了它们,而不是使用 RubyInstaller 附带的卸载程序。这使得注册表项悬空指向已删除的注册。

注册表清理工具可能能够挑选它们并为您修复它,否则您可能必须自己手动清理它。