我正在尝试运行Hallon gem https://github.com/Burgestrand/Hallon
提供的示例我遵循了所有这些指示: https://github.com/Burgestrand/Hallon/wiki
但是,我仍然有一个问题。以下是我得到的错误。任何帮助将不胜感激!
Basils-MacBook-Pro:Hallon Basil $ ruby examples / show_published_playlists_of_user.rb /Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require': cannot load such file -- weak_observable (LoadError) from /Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
require' 来自/Users/Basil/Desktop/Hallon/lib/hallon.rb:6:in<top (required)>' from /Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
要求' 来自/Users/Basil/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from /Users/Basil/Desktop/Hallon/examples/example_support.rb:46:in
' 来自examples / show_published_playlists_of_user.rb:4:inrequire_relative' from examples/show_published_playlists_of_user.rb:4:in
'
答案 0 :(得分:1)
错误消息包含答案:
require': cannot load such file -- weak_observable (LoadError)
这意味着这可以解决您的问题:
gem install weak_observable