rhc设置错误'没有这样的文件dl/导入'

时间:2022-07-26 09:14:47

I'm installing openshift client tools as described: https://developers.openshift.com/en/getting-started-windows.html#client-tools. On step 'Setting up Your Machine' I got error:

我正在安装openshift客户端工具,如下所述:https://developers.openshift.com/en/getting-started windows.html#客户端工具。在“设置你的机器”的步骤上,我有错误:

rhc setup C:/Ruby22-x64/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require' : cannot load such file -- dl/import (LoadError)

rhc设置C:/ Ruby22-x64 / lib / ruby / 2.2.0 / rubygems / core_ext / kernel_require。rb:54:在“require”中:无法加载此类文件——dl/import (LoadError)

Full stack trace:

完整的堆栈跟踪:

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

I found same problem: https://groups.google.com/forum/#!topic/supmua/hPyTTamhTyc It's suggest to replace DL with Fiddle.

我发现了同样的问题:https://groups.google.com/forum/#!建议用古提琴代替古提琴。

How I can get working rhc?

我怎么能找到工作rhc?

7 个解决方案

#1


206  

Updating net-ssh to 2.9.3.beta1, as cremno suggested in this comment, resolved my problem.

更新net-ssh 2.9.3。正如cremno在此评论中所建议的,beta1解决了我的问题。

gem install net-ssh -v 2.9.3.beta1

Before that, I tried gem install net-ssh, but it didn't help.

在此之前,我尝试了gem安装net-ssh,但是没有任何帮助。

#2


49  

I ran into this problem when I used the latest version of Ruby (currently 2.2.1) as stated on the OpenShift setup instructions. I fixed it by:

我在使用最新版本的Ruby(目前是2.2.1)时遇到了这个问题,如OpenShift设置说明所述。我固定它:

  1. Installing Ruby 1.9.3
  2. 安装Ruby 1.9.3
  3. Re-running "gem install rhc"
  4. 重新运行“gem安装rhc”

After that, I was able to run "rhc setup" without any issue.

之后,我就可以运行“rhc设置”了,没有任何问题。

#3


17  

If you are running Windows 10 Pro x64, try installing Ruby 2.1.8 (x64) with Git Version 2.7.0. This will surely allow you to run rhc setup as it did happened with me. Earlier I had a problem running & installing latest version of Ruby 2.2.4 (x64) but when I downgraded to ruby version 2.1.8 (x64) I was able to run rhc setup and configure OpenShift client toolson Windows. See the image for Ruby version I'm using - ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

如果您运行的是windows10 Pro x64,请尝试使用Git版本2.7.0安装Ruby 2.1.8 (x64)。这肯定会让您运行rhc设置,就像它发生在我身上一样。早些时候,我在运行和安装Ruby 2.2.4 (x64)的最新版本时遇到了问题,但是当我降级为Ruby 2.1.8 (x64)时,我能够运行rhc设置并配置OpenShift客户端工具子窗口。查看Ruby版本的图片——Ruby 2.1.8p440(2015-12-16修订53160)[x64-mingw32]

rhc设置错误'没有这样的文件dl/导入'

Read here for getting started to OpenShift client tools on windows.

阅读本文,了解windows上的OpenShift客户端工具。

#4


11  

Use the RHC tested Ruby version instead of the latest. As of today it is 1.9.3-p194

使用RHC测试的Ruby版本而不是最新的。到今天为止是1.9.3-p194

#5


1  

Try using/installing a lower version of ruby after uninstalling the 2,2,0 because some windows version conflict with ruby version you are using. I tried 2.2.3 and then lowered to 2.2.0 and it worked for me.

在卸载2、2、0之后,尝试使用/安装较低版本的ruby,因为有些windows版本与您正在使用的ruby版本冲突。我尝试了2。2.3,然后降低到2。2。2。

#6


1  

I ran into this same error, and none of the solutions worked for me. In a last attempt, I installed the Ruby 1.9.3-p551 version and the rhc setup went smoothly. I use a Windows 10 machine.

我遇到了同样的错误,没有一个解对我有效。在最后一次尝试中,我安装了Ruby 1.9.3-p551版本,rhc的安装进展顺利。我使用的是Windows 10机器。

#7


0  

I am running Windows 10 Pro x64. I installed Ruby 2.1.8 (x64) with Git Version 2.7.2. Rhc was installed successfully. However, "rhc snapshot save ..." command had problem with net-ssh. However, after restarting windows 10 the errors was gone.

我正在运行Windows 10 Pro x64。我使用Git版本2.7.2安装了Ruby 2.1.8 (x64)。Rhc已成功安装。但是,“rhc快照保存…”命令对net-ssh有问题。然而,在重新启动windows 10之后,错误就消失了。

Remember to try reboot your windows.

记住,试着重新启动你的windows。

#1


206  

Updating net-ssh to 2.9.3.beta1, as cremno suggested in this comment, resolved my problem.

更新net-ssh 2.9.3。正如cremno在此评论中所建议的,beta1解决了我的问题。

gem install net-ssh -v 2.9.3.beta1

Before that, I tried gem install net-ssh, but it didn't help.

在此之前,我尝试了gem安装net-ssh,但是没有任何帮助。

#2


49  

I ran into this problem when I used the latest version of Ruby (currently 2.2.1) as stated on the OpenShift setup instructions. I fixed it by:

我在使用最新版本的Ruby(目前是2.2.1)时遇到了这个问题,如OpenShift设置说明所述。我固定它:

  1. Installing Ruby 1.9.3
  2. 安装Ruby 1.9.3
  3. Re-running "gem install rhc"
  4. 重新运行“gem安装rhc”

After that, I was able to run "rhc setup" without any issue.

之后,我就可以运行“rhc设置”了,没有任何问题。

#3


17  

If you are running Windows 10 Pro x64, try installing Ruby 2.1.8 (x64) with Git Version 2.7.0. This will surely allow you to run rhc setup as it did happened with me. Earlier I had a problem running & installing latest version of Ruby 2.2.4 (x64) but when I downgraded to ruby version 2.1.8 (x64) I was able to run rhc setup and configure OpenShift client toolson Windows. See the image for Ruby version I'm using - ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

如果您运行的是windows10 Pro x64,请尝试使用Git版本2.7.0安装Ruby 2.1.8 (x64)。这肯定会让您运行rhc设置,就像它发生在我身上一样。早些时候,我在运行和安装Ruby 2.2.4 (x64)的最新版本时遇到了问题,但是当我降级为Ruby 2.1.8 (x64)时,我能够运行rhc设置并配置OpenShift客户端工具子窗口。查看Ruby版本的图片——Ruby 2.1.8p440(2015-12-16修订53160)[x64-mingw32]

rhc设置错误'没有这样的文件dl/导入'

Read here for getting started to OpenShift client tools on windows.

阅读本文,了解windows上的OpenShift客户端工具。

#4


11  

Use the RHC tested Ruby version instead of the latest. As of today it is 1.9.3-p194

使用RHC测试的Ruby版本而不是最新的。到今天为止是1.9.3-p194

#5


1  

Try using/installing a lower version of ruby after uninstalling the 2,2,0 because some windows version conflict with ruby version you are using. I tried 2.2.3 and then lowered to 2.2.0 and it worked for me.

在卸载2、2、0之后,尝试使用/安装较低版本的ruby,因为有些windows版本与您正在使用的ruby版本冲突。我尝试了2。2.3,然后降低到2。2。2。

#6


1  

I ran into this same error, and none of the solutions worked for me. In a last attempt, I installed the Ruby 1.9.3-p551 version and the rhc setup went smoothly. I use a Windows 10 machine.

我遇到了同样的错误,没有一个解对我有效。在最后一次尝试中,我安装了Ruby 1.9.3-p551版本,rhc的安装进展顺利。我使用的是Windows 10机器。

#7


0  

I am running Windows 10 Pro x64. I installed Ruby 2.1.8 (x64) with Git Version 2.7.2. Rhc was installed successfully. However, "rhc snapshot save ..." command had problem with net-ssh. However, after restarting windows 10 the errors was gone.

我正在运行Windows 10 Pro x64。我使用Git版本2.7.2安装了Ruby 2.1.8 (x64)。Rhc已成功安装。但是,“rhc快照保存…”命令对net-ssh有问题。然而,在重新启动windows 10之后,错误就消失了。

Remember to try reboot your windows.

记住,试着重新启动你的windows。