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

后端 未结 1 1294
攒了一身酷
攒了一身酷 2021-02-11 03:22

\"enter

I just got done setting up my rails environment on my old mac book and ran into th

1条回答
  •  星月不相逢
    2021-02-11 03:25

    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!

    0 讨论(0)
提交回复
热议问题