Ruby on rails devkit windows

Mir picture Mir · Jul 1, 2011 · Viewed 12.3k times · Source

I am having a problem in installing devkit of ruby on rails. Here's the error I got

C:\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby192
C:/Ruby192/include/ruby-1.9.1

C:\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby192'
[INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please install RubyGems and rerun 'ruby dk.rb install'.

Please help me

Thanks

Answer

Luis Lavena picture Luis Lavena · Jul 1, 2011

The error is that you added C:/Ruby192/include/ruby-1.9.1 to the list of Ruby installations.

By default dk.rb will not find that and actually that is not a valid path.

Please ensure config.yml contains just this:

- C:/Ruby192

The dash is important

Once you do that, try ruby dk.rb install again.