gpt4 book ai didi

ruby /usr/lib/ruby/1.9.1/rubygems/custom_require.rb :36:in `require' : cannot load such file -- libnotify (LoadError)

转载 作者:数据小太阳 更新时间:2023-10-29 08:33:01 25 4
gpt4 key购买 nike

我是 ruby​​ 新手,我想使用这个 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>'

我该怎么做。谢谢!

最佳答案

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

cannot load such file -- libnotify

...与:

sudo apt-get install libnotify1
sudo gem install libnotify

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

关于 ruby /usr/lib/ruby/1.9.1/rubygems/custom_require.rb :36:in `require' : cannot load such file -- libnotify (LoadError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14181769/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com