【发布时间】:2013-05-13 13:42:21
【问题描述】:
我已将 Ruby 2.0 与 Windows Ruby 安装程序、未打包的 DevKit (DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe) 安装到 Program Files 并运行
ruby dk.rb init
但是生成的config.yml 文件没有列出我的Ruby 路径。其内容如下:
# 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
#
---
如何让dk.rb生成有效的config.yml?
【问题讨论】:
-
我也遇到了同样的问题。但是,如果您说的是真的,那么根据Development Kit Wiki,您已将 devkit 提取到 带有空格(程序文件)的目录中,这将不起作用。
-
如果你只是想安装 DevKit,而不是刮牦牛让它正确地自动生成
config.yml,你可以手动编辑config.yml以添加- C:/Ruby200(或任何您的安装位置)在ruby dk.rb install之前。