Install rb-inotify installation error

I am trying to install rb-inotify with the following command

sudo gem install rb-inotify 

and I got the following error:

 Building native extensions. This could take a while... ERROR: Error installing rb-inotify: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:4:in `<main>' Gem files will remain installed in /var/lib/gems/1.9.1/gems/ffi-1.8.1 for inspection. Results logged to /var/lib/gems/1.9.1/gems/ffi-1.8.1/ext/ffi_c/gem_make.out 

any help would be appreciated thanks

+4
source share
2 answers

First install the ruby1.9.1-dev package by running

 sudo apt-get install ruby1.9.1-dev 

from the terminal. Then install rb-inotify as you tried before (perhaps with the addition of the --version flag?)

 sudo gem install --version '~>0.9' rb-inotify 

I followed this process to fix the warning from Sass, and it worked for me.

This comes from another question related in comment from @ shrikant1712. I just print it here to facilitate access to this question.

+17
source

add to your gemfile as

 gem "rb-inotify", "~> 0.9.0" 

and bundle install

+1
source

All Articles