---
title: "Invalid configuration. Please fix 'config.yml.'"
author: "ben_hu"
date: "2012-04-03T10:55:04Z"
tags: ["Invalid configuration", "config.yml"]
categories: ["编程语言"]
slug: "invalid-configuration-please-fix-config-yml"
draft: false
lastmod: "2012-10-11T15:45:07Z"
id: 1473391
url: "https://ben-hu.iteye.com/blog/1473391"
---

在按装Ruby Devkit时候，可能需要手动去添加Ruby，根据注释说，只需把安装Ruby的绝对路径粘贴在“---”下面即可。可是试过了，运行ruby dk.rb review，报出如下错误


```java
“Invalid configuration. Please fix 'config.yml.'”
```


很是费解，经过调查发现，这里要添加的是一个Rubies list即，及时有只安装了一个Ruby，也要写两个。也就是说重复两行；此外，绝对路径之前需要加“横线”+“空格”


```java
# 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
#
---
- E:/Ruby1.9.3
- E:/Ruby1.9.3
```