我是ruby fresh,我想使用这个pomo util:https://github.com/visionmedia/pomo#readme。
但是当我在我的Ubuntu12.10终端上执行pomo时:
/var/lib/gems/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:365:in
`block in require_program':
program version required (Commander::Runner::CommandError)
from /var/lib/gems/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:364:in `each'
from /var/lib/gems/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:364:in `require_program'
from /var/lib/gems/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:52:in `run!'
from /var/lib/gems/1.9.1/gems/commander-4.1.3/lib/commander/delegates.rb:11:in `run!'
from /var/lib/gems/1.9.1/gems/commander-4.1.3/lib/commander/import.rb:10:in `block in <top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
cannot load such file -- libnotify (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/pomo-2.0.2/lib/pomo.rb:5:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/pomo-2.0.2/bin/pomo:7:in `<top (required)>'
from /usr/local/bin/pomo:23:in `load'
from /usr/local/bin/pomo:23:in `<main>'
我该怎么办。谢谢!
最佳答案
不完全确定是什么问题。但至少从修正这个错误开始:
cannot load such file -- libnotify
……用:
sudo apt-get install libnotify1
sudo gem install libnotify
如果运气好,它会解决问题的。
关于ruby - ruby/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:在'require'中:无法加载此类文件— libnotify(LoadError),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14181769/