ruby - 无效配置或未列出 Rubies。请修复 'config.yml' 并重新运行 'ruby dk.rb install'

标签 ruby windows installation

我想在 Windows7 上安装 ruby​​,然后使用 Scout 和 SASS,我是通过 Windows 安装程序完成的,但我正在初始化它,然后安装以配置我的 SASS。我做了

ruby dk.rb init

没有任何问题,但对于

ruby dk.rb install

我配置config.yml文件报错, 我的 Ruby 文件夹在以下路径中:

G:\Ruby22-x64

截图如下:

enter image description here

根据 similar questions我在config.yml中写了这个路径文件:

# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
-"G:/Ruby22-x64"

我也试过:

-G:/Ruby22-x64

-G:/Ruby22-x64/bin

还有这个:

---
-G:\Ruby22-x64

我也安装到c:\programfiles 然后把路径写到config.yml 还是不行

没有对我有用,我该如何解决?

最佳答案

尝试:

---
- G:\Ruby22-x64

YAML 语法表示您需要顶部的 3 个破折号,然后是 破折号空格 (-)

关于ruby - 无效配置或未列出 Rubies。请修复 'config.yml' 并重新运行 'ruby dk.rb install',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30113666/

相关文章:

ruby-on-rails - ActionController::RoutingError(没有路由匹配 {:controller= >"users", :action= >"profile"})

mysql - Mac OS X Snow Leopard 上的 Rails : mysql2. bundle dlsym - 找不到符号 (LoadError)

windows - read-line 在 WINDOWS 上只读取 1 个字符

linux - Python3 多处理 Windows 和 Linux

r - 通过 environment.yml 文件使用 conda 安装 R 包

c# - 如何在网络上的所有机器上安装 .NET Windows Forms 应用程序?

ruby-on-rails - emacs-rails vs rinari?

ruby-on-rails - Rails_Admin - 如何更改 Post View 中文本字段的大小

c - 是否可以在 MS Windows 上编译 C89 代码?

linux - 在 linux 中添加一个新的应用程序组