Skip to content

Instantly share code, notes, and snippets.

# Rails 4, empty app
# app/controllers/clients_controller.rb
class ClientsController < ApplicationController
def index
@clients = Client.all
end
end
# app/views/clients/index.html.erb
@haberbyte
haberbyte / gist:4240465
Created December 8, 2012 14:32
JRuby on Ubuntu x86_64 trying to install pygments gem with native extensions.
rake aborted!
load error: posix_spawn_ext -- java.lang.UnsatisfiedLinkError: failed to load shim library, error: /opt/rubies/jruby-1.7.1/lib/native/x86_64-Linux/libjruby-cext.so: cannot open shared object file: No such file or directory
org/jruby/RubyKernel.java:1027:in `require'
IOError: closed stream
close at org/jruby/RubyIO.java:2053
begin_restart at /u/apps/docmago/shared/bundle/jruby/1.9/gems/puma-1.6.3-java/lib/puma/server.rb:637
run at /u/apps/docmago/shared/bundle/jruby/1.9/gems/puma-1.6.3-java/lib/puma/cli.rb:438
call at org/jruby/RubyProc.java:249
2012-10-23 22:07:54 +0200: Listen loop error: #<Errno::EBADF: Bad file descriptor - Bad file descriptor>
org/jruby/ext/socket/RubyUNIXServer.java:81:in `accept'
/u/apps/docmago/shared/bundle/jruby/1.9/gems/puma-1.6.3-java/lib/puma/server.rb:252:in `handle_servers'
org/jruby/RubyArray.java:1612:in `each'
/u/apps/docmago/shared/bundle/jruby/1.9/gems/puma-1.6.3-java/lib/puma/server.rb:248:in `handle_servers'