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

The native websocket_mask extension should be an optional dependency #11

Open
SpComb opened this issue Jul 25, 2017 · 0 comments
Open

Comments

@SpComb
Copy link
Contributor

SpComb commented Jul 25, 2017

It should be possible to depend on and use the kontena-websocket-client gem without requiring a compiler for native ruby extensions when installing the gem:

~ $ gem install kontena-websocket-client
Fetching: websocket-extensions-0.1.2.gem (100%)
Successfully installed websocket-extensions-0.1.2
Fetching: websocket-driver-0.6.5.gem (100%)
Building native extensions.  This could take a while...
ERROR:  Error installing kontena-websocket-client:
	ERROR: Failed to build gem native extension.

    current directory: /home/kontena/.gem/ruby/2.3.0/gems/websocket-driver-0.6.5/ext/websocket-driver
/usr/bin/ruby -r ./siteconf20170725-9-4pljei.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /home/kontena/.gem/ruby/2.3.0/gems/websocket-driver-0.6.5 for inspection.
Results logged to /home/kontena/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/websocket-driver-0.6.5/gem_make.out

This currently fails on the websocket-driver gem'swebsocket_mask extension. The native websocket_mask extension is optional: WebSocket::Driver will already fall back to the pure-ruby websocket/mask implementation (faye/websocket-driver-ruby#48).

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