Ruby on rails devkit windows

时间:2011-07-01 16:21:28

标签: ruby-on-rails windows devkit

我在rails上安装ruby的rubkit时遇到问题。这是我得到的错误

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'.

请帮帮我

由于

2 个答案:

答案 0 :(得分:21)

错误是您将C:/Ruby192/include/ruby-1.9.1添加到Ruby安装列表中。

默认情况下,dk.rb无法找到,实际上这不是有效路径。

请确保config.yml仅包含此内容:

- C:/Ruby192

破折号很重要

完成后,再次尝试ruby dk.rb install

答案 1 :(得分:2)

打开config.yml并配置Ruby EX的目录:C:/Ruby192