2016-01-02 130 views
0

我正在設置openshift客戶端工具,如下所述:https://developers.openshift.com/en/getting-started-windows.html但我在命令「rhc setup」上收到錯誤。 Error : cannot load such file -- dl/import (LoadError)我搜索了一下,發現在計算器的解決方案:rhc安裝命令給出錯誤

解決方案鏈接:rhc setup gives error `no such file dl/import`

我已經更新淨ssh來2.9.3.beta1但我仍然得到這個錯誤。全堆棧跟蹤如下。

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.38.4/lib/rhc/ssh_helpers.rb:18:in `<top (required)>' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:77:in `<class:Wizard>' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:7:in `<module:RHC>' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/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.38.4/lib/rhc/commands/base.rb:4:in `<top (required)>' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:2:in `<module:Commands>' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/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.38.4/lib/rhc/commands.rb:189:in `block in load' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:in `each' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:in `load' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/cli.rb:36:in `start' 
    from C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/bin/rhc:20:in `<top (required)>' 
    from C:/Ruby22-x64/bin/rhc:23:in `load' 
    from C:/Ruby22-x64/bin/rhc:23:in `<main>' 
+0

這裏已經有類似的帖子:http://stackoverflow.com/questions/34463357/openshift-rhc-setup-in-require-cannot-load-such-file/34470362#34470362 –

回答

1

通過你的堆棧跟蹤,你在Ruby 2.2上。降級到1.9.3或2.2.0。