2012-09-26 8 views
5

He instalado dos rubies usando pik, pero no he instalado ningún rubí fuera de pik.Instalar devkit para rubies instalados por pik

Cuando elija un rubí usando PIK, y luego tratar de establecer DevKit, no hay binarios se añaden al archivo generado 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 
# 
--- 

He intentado añadir los binarios dentro de PIK a la ruta, de manera que config.yml tiene

- C:/pik/rubies/ruby-1.9.2-p136 
- C:/Users/agrimm/.pik/rubies/JRuby-170preview1 

pero me da

bash-3.1$ ruby dk.rb install 
[INFO] Updating convenience notice gem override for 'C:/pik/rubies/ruby-1.9.2-p136' 
[INFO] Installing 'C:/pik/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/devkit.rb' 
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please 
install RubyGems and rerun 'ruby dk.rb install'. 

C:\DevKit>ruby dk.rb install 
[INFO] Skipping existing gem override for 'C:/pik/rubies/ruby-1.9.2-p136' 
[WARN] Skipping existing DevKit helper library for 'C:/pik/rubies/ruby-1.9.2-p136' 
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please 
install RubyGems and rerun 'ruby dk.rb install'. 

C:\DevKit>gem --version 
1.3.7 

C:\DevKit>echo %PATH% 
C:\pik\rubies\ruby-1.9.2-p136\bin;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\pik\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\DevKit\bin 

C:\DevKit>PATH=%PATH%;C:\Users\agrimm\.pik\rubies\JRuby-170preview1\bin 

C:\DevKit>echo %PATH% 
C:\pik\rubies\ruby-1.9.2-p136\bin;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\pik\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\DevKit\bin;C 
:\Users\agrimm\.pik\rubies\JRuby-170preview1\bin 

C:\DevKit>ruby dk.rb install 
[INFO] Skipping existing gem override for 'C:/pik/rubies/ruby-1.9.2-p136' 
[WARN] Skipping existing DevKit helper library for 'C:/pik/rubies/ruby-1.9.2-p136' 
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please 
install RubyGems and rerun 'ruby dk.rb install'. 

¿Es necesario instalar un rubí o al lado de Pik para que Devkit funcione?

Respuesta

2

Veo que esta pregunta es antigua, pero sigue sin respuesta. Tu publicación menciona que instalaste las versiones ruby ​​usando pik. No sé lo que hace Pik bajo las sábanas cuando instalo ruby, pero siempre he usado Rubyinstallers directamente. Han funcionado bien con pik, y he instalado DevKit sin ningún problema. Tenga en cuenta este bit de la DevKit docs:

rubí dk.rb init para generar el archivo config.yml para ser utilizado más adelante en este paso. Sus Rubies instalados aparecerán allí (solo se detectarán aquellos instalados por un paquete RubyInstaller actualmente).

+0

¿Por qué el voto a favor? Responde directamente a la pregunta planteada por el OP al final de la publicación, y es cómo conseguí que pik y devkit jugaran bien juntos. Consulte la página de ayuda sobre la votación a pie de página [aquí] (http://stackoverflow.com/help/privileges/vote-down) – BitMask777

Cuestiones relacionadas