11

我在 Rails 上安装 ruby​​ 的 devkit 时遇到问题。这是我得到的错误

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

请帮我

谢谢

4

2 回答 2

21

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

默认情况下dk.rb不会找到,实际上这不是一个有效的路径。

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

- C:/Ruby192

破折号很重要

一旦你这样做,再试ruby dk.rb install一次。

于 2011-07-01T21:02:06.177 回答
2

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

于 2013-02-19T16:36:01.577 回答