1
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​​ 用于应用程序。

4

3 回答 3

2

可能是最近引入的 highline 错误(https://github.com/JEG2/highline/issues/83) - 尝试卸载 highline 1.6.19 并尝试 1.6.18 或 17 -

gem uninstall highline --version 1.6.19
gem install highline --version 1.6.18
于 2013-07-04T17:33:55.380 回答
1

克莱顿的回答几乎是好的。显然 highline 版本 1.6.12 是幸运的。

于 2013-09-18T11:43:53.023 回答
0

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

于 2014-02-20T18:59:21.827 回答