“rhc setup”抛出以下错误

时间:2013-07-04 12:05:10

标签: ruby gem rubygems openshift openshift-client-tools

C:/Ruby187/lib/ruby/gems/1.8/gems/highline-1.6.19/lib/highline/system_extensions.rb:81: undefined method `dlload' for HighLine::SystemExtensions::WinAPI:Module(NoMethodError)
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/highline-1.6.19/lib/highline.rb:14
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/highline-1.6.19/lib/highline/import.rb:8
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/commander-4.1.3/lib/commander.rb:24
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc.rb:30
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/rhc-1.10.7/lib/rhc/cli.rb:1
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`gem_original_require'
    from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in`require'
    from C:/Ruby187/lib/ruby/gems/1.8/gems/rhc-1.10.7/bin/rhc:18
    from C:/Ruby187/bin/rhc:23:in `load'
    from C:/Ruby187/bin/rhc:23

我使用Ruby Installer 1.8版本安装了ruby,因为我需要这个版本的ruby用于应用程序。

3 个答案:

答案 0 :(得分:2)

可能是最近推出的高线虫(https://github.com/JEG2/highline/issues/83) - 尝试卸载高线1.6.19并尝试1.6.18或17 -

gem uninstall highline --version 1.6.19
gem install highline --version 1.6.18

答案 1 :(得分:1)

克莱顿的回答几乎是好的。显然,高线版1.6.12是幸运的。

答案 2 :(得分:0)

我正在使用Ruby /1.8.7和highline(1.6.20,1.6.9,1.6.2) 我只是卸载1.6.20版本 现在一切都好!