当我尝试设置Devkit路径时,我最终得到以下错误
C:\Devkit>ruby dk.rb install
Invalid configuration or no Rubies listed. Please fix 'config.yml'
and rerun 'ruby dk.rb install'
Run Code Online (Sandbox Code Playgroud)
我无法解决此错误.有人能帮我吗?
这是我的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
#
---
Run Code Online (Sandbox Code Playgroud)
the*_*Man 36
您的config.yml文件是YAML文件.您需要使用以下示例定义Ruby环境的路径:
# --- # - C:/ruby19trunk # - C:/ruby192dev
这个例子被注释掉了,所以它在你的机器上没有做任何事情.在"真正的"YAML中你会使用类似的东西:
---
- C:/ruby19trunk
- C:/ruby192dev
Run Code Online (Sandbox Code Playgroud)
这将为您的环境定义一组路径或目录.您需要确定适当路径的位置,然后将其填入.
我强烈建议您阅读YAML文档,以便了解您正在做什么.更重要的是,YAML是最常用的数据序列化格式之一,你会遇到很多.