Skip to content

Instantly share code, notes, and snippets.

@studio3104
Created October 4, 2014 04:33
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 studio3104/0147ed65cc74751173ac to your computer and use it in GitHub Desktop.
Save studio3104/0147ed65cc74751173ac to your computer and use it in GitHub Desktop.
ruby 2.1.3 で require 'sinatra/namespace' していると Errno::EBADF で起動出来ない
require 'sinatra/base'
require 'sinatra/namespace'
class App < Sinatra::Base
end
require 'sinatra'
require './app'
run App
/home/studio3104/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb:2:in `close': Bad file descriptor @ fptr_finalize - /home/studio3104/.rbenv/versio
ns/2.1.3/lib/ruby/gems/2.1.0/gems/backports-3.6.0/lib/backports/1.9.1/io/open.rb (Errno::EBADF)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment