質問

シンプルシナトラアプリます:

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

すべての宝石は、最新のです。私はルビー1.8.7を実行しています(2008年8月11日パッチレベル72)[i686の-darwin9.6.0]

役に立ちましたか?

解決

私は薄いが32ビットモジュールとしてコンパイルされている疑いがあるとあなたはx86_64のルビー(またはその逆)を使用している

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top