Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Problem with config.yml when installing ruby on rails

Im running ruby dk.rb init (inside my devkit folder) and then ruby dk.rb install but there is a message that says: "is needed to fix config.yml"

This is my config.yml

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

1 Answer

Charles Desabrais
Charles Desabrais
5,183 Points

If anyone get this error, chances are that you installed Ruby x64.

You can get the installation to work by opening %DevKitExtractionDir%\dk.rb(if you followed the video, it will be C:\Ruby200\devkit) in a text editor and changing the REG_KEYS array to include the 64-bit registry path, so it looks like this:

REG_KEYS = [ 'Software\RubyInstaller\MRI', 'Software\RubyInstaller\Rubinius', ' Software\Wow6432Node\RubyInstaller\MRI' ]

source: http://stackoverflow.com/questions/16523607/cant-get-ruby-devkit-configuration-file-autogenerated-properly