Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ ruby -v
jruby 9.1.7.0 (2.3.1) 2017-01-11 68056ae Java HotSpot(TM) 64-Bit Server VM 24.80-b11 on 1.7.0_80-b15 +jit [linux-x86_64]
$ gem install bunny
Successfully installed bunny-2.6.3
1 gem installed
$ irb
irb(main):001:0> require 'bunny'
NameError: uninitialized constant IO::EWOULDBLOCKWaitReadable
from org/jruby/RubyModule.java:3344:in `const_missing'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/cruby/socket.rb:14:in `<module:Socket>'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/cruby/socket.rb:9:in `<module:Bunny>'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/cruby/socket.rb:3:in `<main>'
from org/jruby/RubyKernel.java:961:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/jruby/socket.rb:1:in `<main>'
from org/jruby/RubyKernel.java:961:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/jruby/socket.rb:1:in `<main>'
from org/jruby/RubyKernel.java:961:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/socket.rb:1:in `<main>'
from org/jruby/RubyKernel.java:961:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:133:in `require'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/socket.rb:3:in `<eval>'
from org/jruby/RubyKernel.java:1000:in `eval'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny.rb:1:in `(root)'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny.rb:12:in `(root)'
from (irb):1:in `block in (root)'
from (irb):1:in `evaluate'
from org/jruby/RubyKernel.java:1298:in `loop'
from org/jruby/RubyKernel.java:1120:in `catch'
from org/jruby/RubyKernel.java:1120:in `catch'
from /home/abd/.rbenv/versions/jruby-9.1.7.0/bin/irb:13:in `<main>
$ echo "require 'bunny'" > test.rb
$ jruby test.rb -Xbacktrace.style=full
NameError: uninitialized constant IO::EWOULDBLOCKWaitReadable
const_missing at org/jruby/RubyModule.java:3344
<module:Socket> at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/cruby/socket.rb:14
<module:Bunny> at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/cruby/socket.rb:9
<main> at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/cruby/socket.rb:3
require at org/jruby/RubyKernel.java:961
(root) at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<main> at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
require at org/jruby/RubyKernel.java:961
(root) at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/jruby/socket.rb:1
<main> at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
require at org/jruby/RubyKernel.java:961
require at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:55
<main> at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/bunny-2.6.3/lib/bunny/socket.rb:3
require at org/jruby/RubyKernel.java:961
(root) at /home/abd/.rbenv/versions/jruby-9.1.7.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<main> at test.rb:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.