guard/guard — Issue #195: Guard not running
Author: madtrick
Created: 2011-12-19 12:59:39+00:00
State: open

Hi,

I've just installed the latest version (0.9.0) of the guard gem and it doesn't work on my system.

This is the output I get when I run it:

```bash

Please add rb-readline for proper Readline support.
Guard could not detect any of the supported notification libraries.
Guard is now watching at ''
/home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/watcher.rb:80:in `initialize': Permission denied - Failed to watch "/lost+found": read access to the given file is not permitted. (Errno::EACCES)
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/notifier.rb:190:in `new'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/notifier.rb:190:in `watch'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/notifier.rb:199:in `watch'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/notifier.rb:195:in `block in watch'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/notifier.rb:192:in `each'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/vendor/linux/lib/rb-inotify/notifier.rb:192:in `watch'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/guard/listeners/linux.rb:58:in `watch'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/guard/listener.rb:95:in `start'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/guard/listeners/linux.rb:20:in `start'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/guard.rb:181:in `start'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/lib/guard/cli.rb:74:in `start'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/gems/guard-0.9.0/bin/guard:6:in `'
from /home/madtrick/.rvm/gems/ruby-1.9.2-p290/bin/guard:19:in `load'
```

This are the related gems I have installed:

* guard (0.9.0)
* guard-shell (0.2.0)
* rb-inotify (0.8.8)
* rb-readline (0.4.2)

My Guardfile (in the same directory where I run guard) is this:

```ruby
guard 'shell' do
watch(%r{uploads/(.+)\.zip}) {|m| `rake deploy[#{m[1]}]`}
end
```