x64 rails instalar actualizar ruby devkit

rails - No se puede autogenerar correctamente el archivo de configuración de Ruby DevKit



rubyinstaller devkit 2.4 4 1 x64 (3)

Edite el archivo config.yml y config.yml la ruta de su directorio de Ruby como se config.yml continuación.

# 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:/ruby21-x64 # - C:/ruby192dev # ---

He instalado Ruby 2.0 con un Windows Ruby Installer, DevKit desempaquetado (DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe) en los archivos de programa y ejecuté

ruby dk.rb init

pero el archivo config.yml generado no lista mi ruta de Ruby. Su contenido es el siguiente:

# 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ómo hacer dk.rb para generar config.yml válido?


Parece que el problema es que la versión de 64 bits de Ruby 2.0.0 crea una entrada de registro en una ubicación que el script de iniciación Devkit (dk.rb) no conoce (''Software / Wow6432Node / RubyInstaller / MRI'').

Hasta que se actualice el instalador de Devkit, puede hacer que la instalación funcione abriendo% DevKitExtractionDir% / dk.rb en un editor de texto y cambiando la matriz REG_KEYS para incluir la ruta de registro de 64 bits, por lo que se ve así:

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


Ruby sobre raíles devkit windows

El guión frente a la ruta absoluta en el archivo config.yml era todo lo que necesitaba.

- C:/Ruby....

También para mencionar, Ruby y Devkit están ubicados a propósito en la raíz de mi disco C para evitar el problema con los espacios en blanco en la carpeta ''Archivos de programa''.