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

Explicitly require eventmachine (for homebrew) #735

Merged
merged 1 commit into from
May 28, 2020
Merged

Conversation

cooperka
Copy link
Member

Fixes:

Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
nemo/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require': dlopen(nemo/vendor/bundle/ruby/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
  Referenced from: nemo/vendor/bundle/ruby/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle
  Reason: image not found - nemo/vendor/bundle/ruby/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle

I tried quite a few other suggested workarounds to no avail; this comment did it for me oneclick/rubyinstaller2#96 (comment)

Fixes:

```
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
nemo/vendor/bundle/ruby/2.4.0/gems/activesupport-5.2.4.2/lib/active_support/dependencies.rb:291:in `require': dlopen(nemo/vendor/bundle/ruby/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib (LoadError)
  Referenced from: nemo/vendor/bundle/ruby/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle
  Reason: image not found - nemo/vendor/bundle/ruby/2.4.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle
```
@smoyte
Copy link
Contributor

smoyte commented May 28, 2020

My only concern here would be performance (switching from native to Ruby) but it seems eventmachine is only needed by thin which is not used in production, so this should be fine.

@smoyte smoyte merged commit 622a8b7 into develop May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants