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' #129

Open
sshaw opened this issue Jan 10, 2023 · 1 comment

Comments

@sshaw
Copy link

sshaw commented Jan 10, 2023

/ >gem install octodown
Fetching octodown-1.9.2.gem
Successfully installed octodown-1.9.2
1 gem installed
/ >octodown something.md
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
Traceback (most recent call last):
	16: from /Users/sshaw/.asdf/installs/ruby/2.7.6/bin/octodown:23:in `<main>'
	15: from /Users/sshaw/.asdf/installs/ruby/2.7.6/bin/octodown:23:in `load'
	14: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/octodown-1.9.2/bin/octodown:4:in `<top (required)>'
	13: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	12: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	11: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/octodown-1.9.2/lib/octodown.rb:8:in `<top (required)>'
	10: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	 9: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	 8: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/octodown-1.9.2/lib/octodown/renderer/server.rb:3:in `<top (required)>'
	 7: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	 6: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	 5: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/faye-websocket-0.11.1/lib/faye/websocket.rb:10:in `<top (required)>'
	 4: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	 3: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
	 2: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:8:in `<top (required)>'
	 1: from /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
/Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': dlopen(/Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle, 0x0009): symbol not found in flat namespace (_BIO_ctrl) - /Users/sshaw/.asdf/installs/ruby/2.7.6/lib/ruby/gems/2.7.0/gems/eventmachine-1.2.7/lib/rubyeventmachine.bundle (LoadError)

Any reason to not use the pure ruby version suggested by the message? The less dependencies the better is always a good rule for command-line programs.

@sshaw
Copy link
Author

sshaw commented Jan 10, 2023

Any reason to not use the pure ruby version suggested by the message?

To be clear, you'd call require 'em/pure_ruby' in octodown/renderer/server.rb before require 'faye/websocket'

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

No branches or pull requests

1 participant