rake db:migrate error (Function 'inotify_init' not found)

拟墨画扇 提交于 2019-12-03 10:04:12

Essentially, someone on my team added Linux specific installation of some stuff. To fix it, do the following:

For rb-inotify stuff, do this:

group :development do
  gem 'rb-inotify', :require => false
  gem 'rb-fsevent', :require => false
  gem 'rb-fchange', :require => false
end

If you have libnotify, do this:

gem 'libnotify' if /linux/ =~ RUBY_PLATFORM
gem 'growl' if /darwin/ =~ RUBY_PLATFORM

Worked for me, happy coding!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!