OpenShift rhc在安装时失败

时间:2016-01-24 03:57:06

标签: ruby openshift openshift-client-tools

我是OpenShift的新手,我有一台Windows 10(x86)机器,我正在尝试设置rhc,但是向我显示了这条消息:

rhc setup D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext kernel_require.rb:54:in require': cannot load such file -- dl/import (LoadError) from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/pageant.rb:1:in <top (required)>' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent/socket.rb:5:in' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/agent.rb:22:in <top (required)>' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/key_manager.rb:4:in' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/authentication/session.rb:4:in <top (required)>' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh.rb:11:in' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/ssh_helpers.rb:18:in <top (required)>' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:77:in' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:7:in <module:RHC>' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/wizard.rb:6:in' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands/base.rb:4:in <top (required)>' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:2:in' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands/account.rb:1:in <top (required)>' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:inrequire' from D:/Herramientas/Ruby/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in require' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands.rb:189:inblock in load' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:in each' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/commands.rb:188:inload' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/lib/rhc/cli.rb:36:in start' from D:/Herramientas/Ruby/lib/ruby/gems/2.2.0/gems/rhc-1.38.4/bin/rhc:20:in' from D:/Herramientas/Ruby/bin/rhc:23:in load' from D:/Herramientas/Ruby/bin/rhc:23:in'

任何人都可以帮助我?

3 个答案:

答案 0 :(得分:0)

你可能想检查ruby和git的版本。或者只是reinstall他们。

ruby -v

git --version

如果您的控制台无法识别命令,则需要检查环境变量并将ruby和git添加到env。

Installing Git in PATH with GitHub client for Windows

How do I add Ruby to the PATH variable on Windows?

使用以下命令重新安装rhc gem install rhc

答案 1 :(得分:0)

感谢您的回答。

我的红宝石版本:git version 2.6.3.windows.1

我的git版本:rhc setup

这是通过提到的命令获得的,这些程序安装在rhc之前,比如说教程。

当我运行{{1}}时,请告诉我上面发布的错误。

答案 2 :(得分:0)

显然,RHC for Windows功能需要旧版本的Ruby。 您想使用Ruby 1.9.3 (及其最新补充)。如果您转到正常Ruby download site,则需要选择Archives>>链接。您可能必须手动更新系统环境路径变量以将Ruby路径放在那里(并重新启动系统),然后才能看到结果。 (我的安装位于C:\Ruby193\bin)我尝试在多台Windows机器上使用RHC时遇到了很多麻烦,直到我恢复到该版本的Ruby。

享受OpenShift的乐趣。