シンプルなシナトラアプリ:
require 'rubygems'
require 'sinatra'
get '/' do
"Hey"
end
それで:
$ ruby test.rb
そして、http:// localhost:4567を押すと、接続が切断され、次のようになります。
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin_parser.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin_parser.bundle, 9): no suitable image found. Did find: (LoadError)
/usr/local/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin_parser.bundle: unknown required load command 0x80000022 - /usr/local/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin_parser.bundle
すべての宝石は最新です。私はruby1.8.7(2008-08-11パッチレベル72)を実行しています[i686-darwin9.6.0]