Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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
# 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.
# - C:/ruby19trunk
# - C:/ruby192dev
Charles Desabrais5,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' ]