薄(红宝石)正在呕吐
简单的 sinatra 应用程序:
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
所有宝石都是最新的。我正在运行 ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
Simple sinatra app:
require 'rubygems'
require 'sinatra'
get '/' do
"Hey"
end
Then:
$ ruby test.rb
And when I hit http://localhost:4567, it drops the connection and I get:
/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
All gems are up-to-date. I am running ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我怀疑 Thin 被编译为 32 位模块,并且您正在使用 x86_64 Ruby (或相反)
I suspect that Thin is compiled as a 32-bit module and you're using x86_64 Ruby (or the other way around)