rhc安装程序给出错误`没有这样的文件dl / import`

我正在安装openshift客户端工具: https : //developers.openshift.com/en/getting-started-windows.html#client-tools 。 在“设置您的机器”一步,我得到错误:

rhc设置C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:在`require':无法加载这样的文件 – dl / import(LoadError)

全堆栈跟踪:

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

我发现同样的问题: https : //groups.google.com/forum/#!topic /supmua/hPyTTamhTycbuild议用小提琴取代DL。

我怎么能得到工作rhc?

更新net-ssh到2.9.3.beta1,正如cremno在这个评论中所build议的那样,解决了我的问题。

 gem install net-ssh -v 2.9.3.beta1 

在那之前,我尝试了gem install net-ssh ,但没有帮助。

当我使用最新版本的Ruby(当前是2.2.1)时,我遇到了这个问题,如OpenShift安装说明所述。 我是通

  1. 安装Ruby 1.9.3
  2. 重新运行“gem install rhc”

之后,我可以运行“rhc setup”而没有任何问题。

如果您正在运行Windows 10 Pro x64,请尝试使用Git V2.7.0安装Ruby 2.1.8(x64) 。 这肯定会让你运行rhc setup就像它发生在我身上一样。 之前我有一个问题,运行和安装最新版本的Ruby 2.2.4 (x64)但是当我降级到ruby版本2.1.8 (x64)我能够在Windows上运行rhc setup和configurationOpenShift client tools 。 看到我使用的Ruby版本的图像 – ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

在这里输入图像说明

在这里阅读开始在Windows上的OpenShift client tools

使用RHCtesting的 Ruby版本而不是最新版本。 截至今天,它是1.9.3-p194

在卸载2,2,0之后,尝试使用/安装较低版本的ruby,因为某些Windows版本与您正在使用的ruby版本冲突。 我试了2.2.3,然后降低到2.2.0,它为我工作。

我遇到了同样的错误,没有解决scheme为我工作。 在最后一次尝试中,我安装了Ruby 1.9.3-p551版本,并且rhc安装顺利进行。 我使用Windows 10机器。

我正在运行Windows 10 Pro x64。 我安装了Ruby 2.1.8(x64)与Git版本2.7.2。 Rhc安装成功。 但是,“rhc snapshot save …”命令与net-ssh有问题。 但是,重新启动Windows 10后,错误消失了。

记得尝试重新启动你的Windows。