1

我想使用 yahoo 音乐 gem,但由于 activesupport gem 而出现错误。

我的代码

require 'yahoo-music'

编辑1:

Eroor

LoadError: cannot load such file -- activesupport
    from /Users/Ashok/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/Ashok/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /Users/Ashok/.rvm/gems/ruby-2.0.0-p247/gems/yahoo-music-0.1.0/lib/yahoo-music.rb:1:in `block in <top (required)>'
    from /Users/Ashok/.rvm/gems/ruby-2.0.0-p247/gems/yahoo-music-0.1.0/lib/yahoo-music.rb:1:in `each'
    from /Users/Ashok/.rvm/gems/ruby-2.0.0-p247/gems/yahoo-music-0.1.0/lib/yahoo-music.rb:1:in `<top (required)>'
    from /Users/Ashok/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `require'
    from /Users/Ashok/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in `rescue in require'
    from /Users/Ashok/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in `require'
    from (irb):1
    from /Users/Ashok/.rvm/rubies/ruby-2.0.0-p247/bin/irb:16:in `<main>'
4

1 回答 1

0

无法加载此类文件 -- activesupport (LoadError)

https://github.com/mattt/yahoo-music

Additionally, yahoo-music has the following gem dependencies:

* Hpricot >= 0.6
* ActiveSupport >= 2.1.0
* FlexMock >= 0.8.2

...这意味着您也必须安装这些 gem。即使这样,您也可能必须使用 ruby​​ 1.8.7。

于 2013-08-24T06:41:17.477 回答