Nickool
Nickool

Reputation: 3702

Invalid configuration or no Rubies listed. Please fix 'config.yml' and rerun 'ruby dk.rb install'

I want to install ruby on windows7 to then use Scout and SASS, I did it by a windows installer but I am initializing it and then intalling for configuring my SASS. I did the

ruby dk.rb init

without any problem but for

ruby dk.rb install

I have the error to configure the config.yml file, my Ruby folder is in the fallowing path:

G:\Ruby22-x64

here is the screenchot:

enter image description here

according to similar questions I wrote this path file in 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
#
-"G:/Ruby22-x64"

I also tried:

-G:/Ruby22-x64

or

-G:/Ruby22-x64/bin

and also this:

---
-G:\Ruby22-x64

I also intalled it in c:\programfiles and then write the path in config.yml still not working.

nothing worked for me,How can I solve it?

Upvotes: 13

Views: 10707

Answers (3)

ziazan
ziazan

Reputation: 1

This is the solution.

# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- "D:/Program Files/Ruby23-x64"

you should notice that space, see this picture for more detail

Upvotes: 0

Zeeshan_DaDa
Zeeshan_DaDa

Reputation: 21

dont get confuse with the YML File ('listed in DevKit Extraction folder') just put the Ruby Directory Name (that u installed on C:/ or your primary disk drive) for me (i installed ruby on C:/ Ruby22-x64) you just put that directory name at the end of YML File

like

  • C:/Ruby22-x64 be careful for white space between Drive name and '- C:/Ruby22-x64' like this

Upvotes: 2

Azolo
Azolo

Reputation: 4383

Try:

---
- G:\Ruby22-x64

The YAML syntax says you need the 3 dashes at the top and then both the dash and space (-)

Upvotes: 30

Related Questions