配置无效或未列出红宝石? [英] Invalid configuration or no Rubies listed?

查看:47
本文介绍了配置无效或未列出红宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

C:\Devkit>ruby dk.rb 安装配置无效或未列出红宝石.请修复'config.yml'并重新运行ruby dk.rb install"

我无法解决此错误.有人可以帮我吗?

这是我的 config.yml 文件.

#这个配置文件包含了所有的绝对路径位置# 安装了 Ruby 以进行增强以与 DevKit 配合使用.这个配置# 文件由ruby dk.rb init"步骤生成,可以修改# 在运行ruby dk.rb install"步骤之前.包括任何已安装的# 不是自动发现的红宝石,只需在下面添加一行# 带有 Ruby 根目录绝对路径的三连字符.## 例子:## ---# - C:/ruby19trunk# - C:/ruby192dev#---

解决方案

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

<前># ---# - C:/ruby19trunk# - C:/ruby192dev

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

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

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

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

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
#
---

解决方案

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.

这篇关于配置无效或未列出红宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆