Invalid configuration or no Rubies listed?

只愿长相守 提交于 2019-12-03 16:27:21

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!