Rails - cannot run app: Unable to load the EventMachine C extension;

前端 未结 5 1195
栀梦
栀梦 2020-12-06 20:27

When I run an app on Lion OS X, I get this error:

Unable to load the EventMachine C extension; To use the pure-ruby reactor, require \'em/pure_ruby\'
/Users/         


        
5条回答
  •  天涯浪人
    2020-12-06 21:11

    The easiest fix as the message says is just to require 'em/pure_ruby'. I think you can put this in the config/inlitializers folder, you can call the file event_machine.rb

    But it won't have the same performance as the C extension.

提交回复
热议问题