Problema con mac os x e inotify

261 views
Skip to first unread message

Cristo Bolaños

unread,
Sep 12, 2012, 5:41:51 AM9/12/12
to las-palma...@googlegroups.com
Buenas,

tengo una aplicación en rails 2.2.2 pero al arrancarla, me da este error:

script/server
=> Booting WEBrick...
/Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/ffi-1.0.11/lib/ffi/library.rb:249:in `attach_function': Function 'inotify_init' not found in [libc.dylib] (FFI::NotFoundError)
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rb-inotify-0.8.8/lib/rb-inotify/native.rb:24
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require_without_desert'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require_without_desert'
    from /Users/doc/foton/git/dogmatix/config/../extras/desert/lib/desert/ruby/object.rb:8:in `require'
    from /Users/doc/foton/git/dogmatix/config/../extras/desert/lib/desert/ruby/object.rb:32:in `__each_matching_file'
    from /Users/doc/foton/git/dogmatix/config/../extras/desert/lib/desert/ruby/object.rb:7:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rb-inotify-0.8.8/lib/rb-inotify.rb:1
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler/runtime.rb:68:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler/runtime.rb:68:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler/runtime.rb:66:in `each'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler/runtime.rb:66:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler/runtime.rb:55:in `each'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler/runtime.rb:55:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334@global/gems/bundler-1.2.0/lib/bundler.rb:128:in `require'
    from ./script/../config/boot.rb:41:in `load_gems'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.2.2/lib/initializer.rb:159:in `process'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
    from /Users/doc/foton/git/dogmatix/config/environment.rb:17
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.2.2/lib/commands/servers/webrick.rb:59
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:153:in `require'
    from /Users/doc/.rvm/gems/ruby-1.8.7-p334/gems/rails-2.2.2/lib/commands/server.rb:49
    from script/server:3:in `require'
    from script/server:3

Y no doy con la manera de arreglarlo... si quito la gema rb-inotify, aunque instale otra versión, bundler me obliga a reinstalar todas las gemas de nuevo.
¿Alguna sugerencia? :/


--
"El Mundo está en las manos de aquellos que tienen el coraje de soñar y correr el riesgo de vivir sus sueños."

http://www.docky.org
http://blog.dosbotones.com
http://www.flickr.com/photos/cbolanos
http://cristobolanos.fotoplatino.com
http://fotopunto.com/141289
http://www.modelmayhem.com/cristobolanos

Abby Henríquez Tejera

unread,
Sep 12, 2012, 5:50:09 AM9/12/12
to las-palma...@googlegroups.com
2012/9/12 Cristo Bolaños <cbol...@gmail.com>:
> Y no doy con la manera de arreglarlo... si quito la gema rb-inotify, aunque
> instale otra versión, bundler me obliga a reinstalar todas las gemas de
> nuevo.
> ¿Alguna sugerencia? :/

Cristo, poco te puedo ayudar, salvo decir que Inotify se usa en
Linux,pero no en Mac.

Como usas Bundler, busca en el Gemfile.lock por qué te instala el
rb-inotify (busca en el fichero por la ristra "rb-inotify" y luego
mira en las líneas que hay por encima y con menos indentación). Si es
una gema que no usas, quítala :) y si es una que usas, mira a ver en
su documentación y en Google a ver si hay alguna forma de conseguir
que no use rb-inotify y sí algo que funcione en OS X.

Por ejemplo, si usas Autotest, igual te está cogiendo el Inotify para
no estar consultando el sistema de ficheros contínuamente, pero le
puedes decir que use FSEvent o algo parecido (
https://github.com/svoop/autotest-fsevent u otros sitios; no uso mucho
OS X así que no sé qué recomendarte).

Salud,
Abby
Reply all
Reply to author
Forward
0 new messages