未初始化常量 Thin::HttpParser (NameError)
这是我将 Thin 从版本 1.2.7 更新到 1.2.8 后遇到的错误。当我卸载较新的版本并告诉我的包再次使用 1.2.7 时,一切都很好。
/usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/request.rb:52:in `initialize': uninitialized constant Thin::HttpParser (NameError)
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/connection.rb:35:in `new'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/connection.rb:35:in `post_init'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:45:in `new'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `instance_eval'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `new'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1430:in `event_callback'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/backends/base.rb:61:in `start'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/server.rb:159:in `start'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/controllers/controller.rb:86:in `start'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/runner.rb:185:in `send'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/runner.rb:185:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/runner.rb:151:in `run!'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/bin/thin:6
from /usr/bin/thin:19:in `load'
from /usr/bin/thin:19
This is the error I’m getting since I updated Thin from version 1.2.7 to 1.2.8. When I uninstall the newer version and tell my bundle to use 1.2.7 again everything is fine.
/usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/request.rb:52:in `initialize': uninitialized constant Thin::HttpParser (NameError)
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/connection.rb:35:in `new'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/connection.rb:35:in `post_init'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:45:in `new'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `instance_eval'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/em/connection.rb:36:in `new'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1430:in `event_callback'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
from /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/backends/base.rb:61:in `start'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/server.rb:159:in `start'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/controllers/controller.rb:86:in `start'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/runner.rb:185:in `send'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/runner.rb:185:in `run_command'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/lib/thin/runner.rb:151:in `run!'
from /usr/lib/ruby/gems/1.8/gems/thin-1.2.8/bin/thin:6
from /usr/bin/thin:19:in `load'
from /usr/bin/thin:19
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
获取 1.2.10
我在 1.2.9 中遇到了同样的问题。释放已被破坏。 1.2.10 今天下午已修复,效果非常好(开发人员在几分钟内就修复了!)。
Get 1.2.10
I had the same problem with 1.2.9. The release was broken. 1.2.10 was fixed this afternoon and works like a charm (the developer fixed in minutes!).