min*_*auw 4 ruby windows postgresql net-ssh openshift
通过搜索在Openshift上访问我的Postgres数据库,我目前面临使用net-ssh的问题.
为了能够从我的本地DB IDE访问DB,我需要执行:
rhc port-forward myappname
但执行会返回此错误: Checking available ports ... Could not parse PKey: no start line
正如你在这篇文章中看到的那样(另一个例如这个),修复是回到net-ssh的稳定版本.2.9.2.我成功完成了什么.
但是现在,运行rhc port-forward myappname会给我以下错误:.../2.2.0/rubygems/core_ext/kernel_require.rb:54:in 'require': cannot load such file
而解决办法是升级净SSH到2.9.3-beta1版(看到这个帖子).
这真是太奇怪了!似乎"蛇正在咬自己的尾巴"(不知道法语表达是否有英文翻译).
请注意,我已尝试使用新的ssh key gen(自动和手动)进行干净设置.我的系统运行'Win 7 64bits.
我卸载/安装了最新版本的Ruby.重新安装rhc.最新版本在rhc-1.36.4上运行.问题还在继续.
你能帮我吗?我应该安装旧版本的ssh-net和/或Ruby(由于新版本的rhc,我不允许使用ssh-net 2.5.2)?
(对不起,我的英语不好)
rhc/Gemfile和rhc/rhc.gemspec需要gem "net-ssh", "<= 2.9.2"
net-ssh版本2.9.2 require dl/import在pageant.rb上使用atleast
dl/import从ruby中删除,请参阅https://github.com/ruby/ruby/blob/v2_2_0/NEWS#L148-L149,
建议小提琴
net-ssh 3.*似乎解决了这个问题(使用fiddle/{import,{for ruby> = 2.1)
net-ssh版本3.对于rhc,兼容性似乎有所下降(仍然在我的工作中)
所以一个简单的黑客就是修改rhc/Gemfile和rhc/rhc.gemspec并安装gem
已经完成它的人.
解决方案(未经测试)
gem 'rhc', :git => 'git://github.com/thrasher-redhat/rhc.git'
Run Code Online (Sandbox Code Playgroud)
替代解决方案(甚至在Windows 7 32bit:p上测试)
git clone https://github.com/openshift/rhc
cd rhc
Run Code Online (Sandbox Code Playgroud)
修改rhc/Gemfile和rhc/rhc.gemspec,如https://github.com/openshift/rhc/pull/748/files then
gem build rhc.gemspec
Run Code Online (Sandbox Code Playgroud)
它应该输出像
blah! blah! blah! warnings and msgs......
Successfully built RubyGem
Name: rhc
Version: 1.38.4
File: rhc-1.38.4.gem
Run Code Online (Sandbox Code Playgroud)
然后运行
gem install rhc-1.38.4.gem
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1116 次 |
| 最近记录: |