繁体   English   中英

Windows上的Ruby Devkit安装错误

[英]Ruby Devkit install error on Windows

我没有Ruby200和Ruby 64之类的目录。几个月前已经安装了它们。 但是我全部删除了。 现在,我正在尝试安装ruby v2.2.6(86)并使用devkit。 但是有一些错误,例如“跳过无效目录”,我该怎么办?

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脚本查看在RubyInstaller安装期间设置的一些注册表项。

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM