2017-06-15 118 views
0

我沒有像Ruby200和Ruby64這樣的目錄。我幾個月前安裝了它們。但是我全部刪除了它們。 現在我試圖安裝ruby v2.2.6(86)並使用devkit。但有一些錯誤,如「跳過無效目錄」我該怎麼辦?Windows上的Ruby 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' 
+1

config.yml可能有錯誤的Ruby路徑。在您的DevKit文件夾中,打開文件「config.yml」並更改最後一行以反映您的Ruby安裝的正確文件夾名稱,並查看是否有幫助 – Idva

+0

我通過在註冊表清理工具中執行一些刪除來解決問題。雖然我已經解決了,但感謝您的關注。 :)通過做你的我可以檢查我所做的方式是正確的。祝你有美好的一天! – taeungha

回答

0

DevKit腳本查看在RubyInstaller安裝期間設置的某些註冊表項。

當您刪除了其他Ruby安裝時,您只是刪除了它們,而不是使用RubyInstaller附帶的卸載程序。這使註冊表鍵指向已刪除的註冊。

註冊表清理工具可能能夠爲您挑選並修復它,如果不是,您可能不得不自己手動清理它。