Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
felicityfmn opened this issue Jan 30, 2018 · 6 comments

Comments

@felicityfmn
Copy link

commented Jan 30, 2018

This project is for Ruby version 2.4 and newer.
For Ruby versions < 2.4 please file an issue here.

What problems are you experiencing?

I keep getting this error message on the console even though I have the event machine gem installed and the require em/pure_ruby

Steps to reproduce

What's the output from ridk version?

Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- 2.4/rubyeventmachine (LoadError) from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5-x64-mingw32/lib/rubyeventmachine.rb:2:in <top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in require'
from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in require'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5-x64-mingw32/lib/eventmachine.rb:8:in <top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in require'
from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in require'
from C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/faye-websocket-0.10.7/lib/faye/websocket.rb:10:in <top (required)>' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in require'
from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:133:in rescue in require' from C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:39:in require'
from C:/Ruby24-x64/flutterbot/play.rb:3:in `

'

@larskanis

This comment has been minimized.

Copy link
Member

commented Jan 30, 2018

Although eventmachine is provided as x64-mingw platform gem, it doesn't support ruby-2.4 or 2.5 right now. So would recommend you to do the following:

  1. Open an issue at eventmachine to update their dependency to rake-compiler-dock-0.6 and to add ruby-2.4 and 2.5 binary support this way and ask them for a new x64-mingw release.
  2. Ask the people at eventmachine, how 'em/pure_ruby' is supposed to work.
  3. Use gem install eventmachine --platform ruby in the meantime.
@larskanis

This comment has been minimized.

Copy link
Member

commented Feb 24, 2018

This issue is forwarded to eventmachine here. Closing now. Thank you @felicityfmn !

@larskanis larskanis closed this Feb 24, 2018

@IsaiaSilva

This comment has been minimized.

Copy link

commented Sep 14, 2018

This problem always occurs ... No convincing answer yet

@Impeck

This comment has been minimized.

Copy link

commented Oct 24, 2018

gem uninstall eventmachine
gem install eventmachine --platform ruby

@reach2jeyan

This comment has been minimized.

Copy link

commented Oct 31, 2018

@Impeck It does not work with those commands?

Any probable solutions to these? I believe it only occurred with ruby version more than 2.5 but seems like even in 2.4 that I Installed, I have this error

@Impeck

This comment has been minimized.

Copy link

commented Oct 31, 2018

To solve the problem specified in the topic you need to run these commands:

gem uninstall eventmachine
gem install eventmachine --platform ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.