ruby openshift

ruby - la configuración de rhc da el error `no existe tal archivo dl/import`



openshift (7)

Estoy instalando herramientas de cliente openshift como se describe: https://developers.openshift.com/en/getting-started-windows.html#client-tools . En el paso ''Configuración de su máquina'' recibí un error:

rhc setup C: /Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 54: en `require '': no ​​se puede cargar dicho archivo - dl / import (LoadError)

Seguimiento de pila completa:

C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'': cannot load such file -- dl/import (LoadError) from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/ssh_helpers.rb:18:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:77:in `<class:Wizard>'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:7:in `<module:RHC>'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard.rb:6:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/base.rb:4:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/account.rb:2:in `<module:Commands>'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands/account.rb:1:in `<top (required)>'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:189:in `block in load'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:188:in `each'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/commands.rb:188:in `load'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/cli.rb:36:in `start'' from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/bin/rhc:20:in `<top (required)>'' from C:/Ruby22-x64/bin/rhc:23:in `load'' from C:/Ruby22-x64/bin/rhc:23:in `<main>''

Encontré el mismo problema: https://groups.google.com/forum/#!topic/supmua/hPyTTamhTyc Se sugiere reemplazar DL con Fiddle.

¿Cómo puedo empezar a trabajar en rhc?


Actualizar net-ssh a 2.9.3.beta1, como cremno sugirió en este comentario , resolvió mi problema.

gem install net-ssh -v 2.9.3.beta1

Antes de eso, probé gem install net-ssh , pero no ayudó.


Estoy ejecutando Windows 10 Pro x64. Instalé Ruby 2.1.8 (x64) con Git Versión 2.7.2. Rhc se instaló con éxito. Sin embargo, el comando "rhc snapshot save ..." tuvo problemas con net-ssh. Sin embargo, después de reiniciar Windows 10, los errores desaparecieron.

Recuerde intentar reiniciar sus ventanas.


Intente usar / instalar una versión inferior de ruby ​​después de desinstalar el 2,2,0 porque algunas versiones de Windows entran en conflicto con la versión de ruby ​​que está utilizando. Intenté 2.2.3 y luego bajé a 2.2.0 y funcionó para mí.


Me encontré con este mismo error, y ninguna de las soluciones funcionó para mí. En un último intento, instalé la versión Ruby 1.9.3-p551 y la configuración de rhc se realizó sin problemas. Yo uso una máquina con Windows 10.


Me encontré con este problema cuando utilicé la última versión de Ruby (actualmente 2.2.1) como se indica en las instrucciones de configuración de OpenShift. Lo arreglé por:

  1. Instalar Ruby 1.9.3
  2. Vuelve a ejecutar "gem install rhc"

Después de eso, pude ejecutar "rhc setup" sin ningún problema.


Si está ejecutando Windows 10 Pro x64, intente instalar Ruby 2.1.8 (x64) con Git Versión 2.7.0 . Esto seguramente le permitirá ejecutar la rhc setup como sucedió conmigo. Anteriormente tuve un problema al ejecutar e instalar la última versión de Ruby 2.2.4 (x64) pero cuando bajé a la versión 2.1.8 (x64) ruby pude ejecutar la rhc setup y configurar OpenShift client tools en Windows. Vea la imagen para la versión de Ruby que estoy usando - ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

https://developers.openshift.com/en/getting-started-windows.html#client-tools para comenzar a OpenShift client tools en Windows.


Utilice la versión de Ruby probada por RHC en lugar de la última. A partir de hoy es 1.9.3-p194