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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:16:27  来源:igfitidea点击:

Ruby on rails devkit windows

ruby-on-railswindowsdevkit

提问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.1to the list of Ruby installations.

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

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

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

Please ensure config.ymlcontains just this:

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

- C:/Ruby192

The dash is important

破折号很重要

Once you do that, try ruby dk.rb installagain.

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

回答by Darlan Dieterich

Open config.ymland configure the diretory of Ruby EX: C:/Ruby192

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