相关疑难解决方法(0)

如何从GitHub源安装gem?

我想从最新的GitHub源安装gem.

我该怎么做呢?

rubygems

444
推荐指数
6
解决办法
20万
查看次数

rhc setup给出错误`没有这样的文件dl/import`

我正在安装openhift客户端工具,如下所述:https://developers.openshift.com/en/getting-started-windows.html#client-tools.在"设置您的机器"一步,我收到错误:

rhc setup 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 …
Run Code Online (Sandbox Code Playgroud)

ruby openshift

158
推荐指数
4
解决办法
4万
查看次数

无法登录Openshift

我一直试图通过Openshift连接我的应用程序好几天仍然没有运气.

我不确定到目前为止哪个论坛,因为我在任何地方都没有得到帮助.

1)我将通过终端和运行sudo rhc setup(我使用sudo的原因是因为没有它,它没有进入下一步)

2)然后提示我执行以下操作:

This wizard will help you upload your SSH keys, set your application namespace, and check
that other programs like Git are properly installed.

Using an existing token for myemail@gmail.com to login to openshift.redhat.com

Saving configuration to /Users/myuser/.openshift/express.conf ... done

Checking for git ... found git version 1.9.2

Checking common problems .Enter passphrase for /Users/myuser/.ssh/id_rsa: 
Enter passphrase for /Users/myuser/.ssh/id_rsa: 
Enter passphrase for /Users/myuser/.ssh/id_rsa: 
Run Code Online (Sandbox Code Playgroud)

3)我创建了两次这个SSH密钥,它永远不会接受我的密码给我以下错误:

An SSH connection could not be established to ghost-mydomain.rhcloud.com. …
Run Code Online (Sandbox Code Playgroud)

ssh-keys openshift openshift-client-tools

9
推荐指数
1
解决办法
9474
查看次数

Openshift端口转发

已经有很多关于它的话题.但我被卡住了

我成功配置了ssh!

SSH

现在我想配置端口转发以与TOAD连接.我使用了这个tut:https://blog.openshift.com/getting-started-with-port-forwarding-on-openshift/

现在当我尝试rhc port-forward -a php时

我得到这个错误无法解析PKey:没有起始行

港口前进

我创建了这个:http: //blog.skypayjm.com/2015/02/accessing-remote-openshifts-database.html

我试图降级ssh,但它没有改变任何东西.

有人知道我做错了什么吗?真诚的,布莱希特

ruby ssh gem openshift

6
推荐指数
1
解决办法
1936
查看次数

设置rhc时出错(红帽客户端工具)

我按照Openshift网站上的说明安装了rhc.当我跑步时,一切似乎都很好gem install rhc,hgem update rhc但是当我试着打电话时,rhc我得到以下信息.我已经尝试重新安装ruby和git,包括32和64条消息.我还认为问题是缺少openssl,但安装没有任何区别.

我已经没有想法了,任何帮助都会非常感激

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/ …
Run Code Online (Sandbox Code Playgroud)

windows redhat openshift

3
推荐指数
1
解决办法
3832
查看次数