Subject:
[ruby-ffi] Re: (FFI::NotFoundError) when starting rails server
From:
Wayne Meissner
Date:
12/14/12 4:32 PM
To:
ruby-ffi@googlegroups.com

inotify is a linux specific API ... so it is not available on MacOS.

Remove inotify from your bundle (or whatever gem depends on it).

On Saturday, 15 December 2012 02:31:10 UTC+11, ja...@jaymf.com wrote:
Hi - I am a noobie, so please be patient:

I am running into an error when launching the rails server.

The first error in my list is:

/usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/ffi-1.0.11/lib/ffi/library.rb:249:in `attach_function': Function 'inotify_init' not found in [libc.dylib] (FFI::NotFoundError)

The rails installation is fresh and clean along with all the gems. Everything is up to date.

I am running Mountain Lion 10.8.2

Here is the entire error message when starting the rails server: 

[eversite]$rails s -p 3015
/usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/ffi-1.0.11/lib/ffi/library.rb:249:in `attach_function': Function 'inotify_init' not found in [libc.dylib] (FFI::NotFoundError)
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/rb-inotify-0.8.8/lib/rb-inotify/native.rb:24:in `<module:Native>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/rb-inotify-0.8.8/lib/rb-inotify/native.rb:9:in `<module:INotify>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/rb-inotify-0.8.8/lib/rb-inotify/native.rb:3:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/rb-inotify-0.8.8/lib/rb-inotify.rb:1:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/rb-inotify-0.8.8/lib/rb-inotify.rb:1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /Users/Argo/Documents/rails_projects/eversite/eversite/config/application.rb:13:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in <top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
from /usr/local/rvm/gems/ruby-1.9.3-p194@eversite/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

Can anyone point me in the right direction please?

Many thanks.