关于 ruby 安装devkit 的config.yml 文件

 手机用户2502857731 发布于 2022-10-25 08:51
$ 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
#

初始化的内容不对呀

需要自己手动填写吗?

另 这里该填写什么东西呢

3 个回答
  • 在最下面添加 - C:/Ruby22-x64(这是你ruby安装的位置,记得前面一定要加横线)

    2022-10-26 14:38 回答
  • 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


    • C:\Ruby200-x64

    (亲测可用)

    2022-10-26 14:38 回答
  • 仔细读config.yml文件,它是要告诉你,把你的Ruby的根目录按照这个格式写在这个文件里面,然后执行 ruby dk.rb install

    如果你安装的目录是C盘下的Ruby文件夹,那就在这个文件的后面写上- C:\Ruby

    2022-10-26 14:38 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有