Skip to content

Instantly share code, notes, and snippets.

@stevenhaddox
Created May 20, 2013 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevenhaddox/5613327 to your computer and use it in GitHub Desktop.
Save stevenhaddox/5613327 to your computer and use it in GitHub Desktop.
Anyone seen / know how to fix this yajl gem error in JRuby?
[sysadmin@support chef-11.4.4]$ jruby -S irb
irb(main):001:0> require 'rubygems'
=> false
irb(main):002:0> require 'yajl'
LoadError: load error: yajl/yajl -- java.lang.UnsatisfiedLinkError: failed to load shim library, error: /home/sysadmin/opt/stow/jruby-1.7.4/lib/native/x86_64-Linux/libjruby-cext.so: cannot open shared object file: No such file or directory
from org/jruby/RubyKernel.java:1054:in `require'
from /home/sysadmin/opt/stow/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'
from /home/sysadmin/opt/stow/jruby-1.7.4/lib/ruby/gems/shared/gems/yajl-ruby-1.1.0/lib/yajl.rb:1:in `(root)'
from org/jruby/RubyKernel.java:1054:in `require'
from /home/sysadmin/opt/stow/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'
from /home/sysadmin/opt/stow/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:60:in `require'
from org/jruby/RubyKernel.java:1093:in `eval'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1489:in `loop'
from org/jruby/RubyKernel.java:1254:in `catch'
from org/jruby/RubyKernel.java:1254:in `catch'
from /home/sysadmin/opt/stow/jruby-1.7.4/bin/jirb:13:in `(root)'
@steveklabnik
Copy link

A streaming JSON parsing and encoding library for Ruby (C bindings to yajl) — Read more

AKA, no.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment