问题
When I try setting the Devkit path, I end up with the following error
C:\Devkit>ruby dk.rb install
Invalid configuration or no Rubies listed. Please fix 'config.yml'
and rerun 'ruby dk.rb install'
I cannot resolve this error. Can someone help me?
This is my config.yml file.
# 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
#
---
回答1:
Your config.yml file is a YAML file. You need to define a path to our Ruby environment, using the example:
# --- # - C:/ruby19trunk # - C:/ruby192dev
That example is commented out so it's not doing anything on your machine. In "real" YAML you'd use something like:
---
- C:/ruby19trunk
- C:/ruby192dev
which would define an array of paths, or directories, for your environment. You'll need to figure out where the appropriate paths are, and fill that in.
I'd strongly recommend you read the YAML documentation so you understand what you're doing. Any more, YAML is one of the most commonly used data-serialization formats there is, and you'll encounter it a lot.
来源:https://stackoverflow.com/questions/21184452/invalid-configuration-or-no-rubies-listed