windows Ruby on rails devkit 窗口
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6550582/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Ruby on rails devkit windows
提问by Mir
I am having a problem in installing devkit of ruby on rails. Here's the error I got
我在 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'.
Please help me
请帮我
Thanks
谢谢
回答by Luis Lavena
The error is that you added C:/Ruby192/include/ruby-1.9.1
to the list of Ruby installations.
错误是您添加C:/Ruby192/include/ruby-1.9.1
到 Ruby 安装列表中。
By default dk.rb
will not find that and actually that is not a valid path.
默认情况下dk.rb
不会找到那个,实际上这不是一个有效的路径。
Please ensure config.yml
contains just this:
请确保config.yml
仅包含以下内容:
- C:/Ruby192
The dash is important
破折号很重要
Once you do that, try ruby dk.rb install
again.
一旦你这样做了,再试ruby dk.rb install
一次。
回答by Darlan Dieterich
Open config.yml
and configure the diretory of Ruby EX: C:/Ruby192
打开config.yml
并配置Ruby EX的目录:C:/Ruby192