19

当我尝试设置Devkit路径时,出现以下错误

C:\Devkit>ruby dk.rb install
Invalid configuration or no Rubies listed. Please fix 'config.yml'
and rerun 'ruby dk.rb install'

我无法解决此错误。有人能帮我吗?

这是我的 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
#
---
4

1 回答 1

36

您的 config.yml 文件是一个YAML文件。您需要使用以下示例定义到我们的 Ruby 环境的路径:

# ---
# - C:/ruby19trunk
# - C:/ruby192dev

该示例已被注释掉,因此它不会在您的机器上执行任何操作。在“真正的” YAML 中,您会使用如下内容:

---
- C:/ruby19trunk
- C:/ruby192dev

这将为您的环境定义一组路径或目录。您需要找出合适的路径在哪里,然后填写。

我强烈建议您阅读YAML 文档,以便了解您在做什么。此外,YAML 是最常用的数据序列化格式之一,您会经常遇到它。

于 2014-01-17T12:53:44.907 回答