$ ruby dk.rb init
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
Administrator@WIN-9PH4ISN44NM MINGW64 /e/tools/devkit
$ ruby dk.rb install
Invalid configuration or no Rubi
在 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
#
初始化的内容不对呀
需要自己手动填写吗?
另 这里该填写什么东西呢
仔细读
config.yml
文件,它是要告诉你,把你的Ruby
的根目录按照这个格式写在这个文件里面,然后执行ruby dk.rb install
。如果你安装的目录是
C
盘下的Ruby
文件夹,那就在这个文件的后面写上- C:Ruby
。这个配置文件包含了所有
的绝对路径位置安装了要增强的 Rubies,以便与 DevKit 配合使用。这个配置
文件由“ruby dk.rb init”步骤生成,可以修改
在运行“ruby dk.rb install”步骤之前。包括任何已安装的
不是自动发现的红宝石,只需在下面添加一行
三个连字符以及 Ruby 根目录的绝对路径。
示例:
---
- C:/ruby19trunk
- C:/ruby192dev
C:Ruby200-x64
(亲测可用)
在最下面添加 - C:/Ruby22-x64(这是你ruby安装的位置,记得前面一定要加横线)