2015-04-12 61 views
3

我已经按照Openshift网站上的说明安装了rhc。我运行gem install rhchgem update rhc时似乎都很好,但是当我尝试拨打rhc时,我会在下面看到以下消息。我试过重新安装ruby和git,都是32和64的消息。我也认为这个问题是一个缺少openssl,但安装没有任何区别。设置rhc(红帽客户端工具)时出错

我已经江郎才尽任何帮助,将不胜感激

c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `requir 
e': cannot load such file -- dl/import (LoadError) 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/ 
authentication/pageant.rb:1:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/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:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/ 
authentication/agent.rb:22:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/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:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/ 
authentication/session.rb:4:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh. 
rb:11:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/ssh_hel 
pers.rb:18:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard. 
rb:77:in `<class:Wizard>' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard. 
rb:7:in `<module:RHC>' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/wizard. 
rb:6:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/command 
s/base.rb:4:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/command 
s/account.rb:2:in `<module:Commands>' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/command 
s/account.rb:1:in `<top (required)>' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb: 
54:in `require' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/command 
s.rb:189:in `block in load' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/command 
s.rb:188:in `each' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/command 
s.rb:188:in `load' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/lib/rhc/cli.rb: 
36:in `start' 
     from c:/local/Ruby22/lib/ruby/gems/2.2.0/gems/rhc-1.35.1/bin/rhc:20:in ` 
<top (required)>' 
     from c:/local/Ruby22/bin/rhc:23:in `load' 
     from c:/local/Ruby22/bin/rhc:23:in `<main>' 
+0

的可能的复制[RHC设置使错误\'没有这样的文件分升/进口\'](http://stackoverflow.com/questions/28896733/rhc-setup-gives-error-no -such-file-dl-import) – vaxquis

回答

9

在别处找到了该网站(rhc setup gives error `no such file dl/import`

gem install net-ssh -v 2.9.3.beta1 

的解决方案......安装一个测试版net-ssh。

+2

不帮我=( – dmigo

+0

也许是另一个缺失的库?或者,(没有检查过),但是2.9.3.beta1现在可能是2.9.3版本 – ptav

2

检查你的红宝石版本。 RHC与Ruby 2或更高版本不兼容。 如果是这样,卸载红宝石和安装1.9.3版本,然后gem install rhc最后rhc setup 它为我在那里升级净SSH从来没有固定的问题

0

假设你已经安装了RHC。 首先使用卸载2.9.2版本:

gem uninstall net-ssh -v 2.9.1 

然后安装

gem install net-ssh -v 2.9.3.beta1 

到这个文件夹你的宝石规格文件夹后:红宝石 \ LIB \红宝石\宝石\ \规格编辑rhc-x.xx.x.gemspec通过变更全部

 s.add_runtime_dependency(%q<net-ssh>, ["<= 2.9.2"]) 

 s.add_runtime_dependency(%q<net-ssh>, [">= 2.9.2"])