2

我比较新鲜,我想使用这个 pomo util:https ://github.com/visionmedia/pomo#readme 。

但是当我在我的 ubuntu 12.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>'

我该怎么办。谢谢!

4

2 回答 2

4

不完全确定问题是什么。但至少从修复这个错误开始:

cannot load such file -- libnotify

...和:

sudo apt-get install libnotify1
sudo gem install libnotify

祝你好运,它会解决这个问题。

于 2013-01-06T12:35:11.617 回答
1

就我而言,这是一个 RVM Ruby 版本问题。我使用的是 Ruby 1.9,当我将其更改为 1.8 时,迁移成功了。

rvm use 1.8
于 2013-09-25T09:55:41.097 回答