Thin 与 Ramaze 发生严重碰撞

发布于 2024-07-25 22:44:39 字数 453 浏览 3 评论 0原文

所以,我只是在一个新项目中尝试 Ramaze,我想知道为什么它不能与 Thin 一起工作,但可以与 ramaze 一起启动(我猜是 webrick)。 这是它给我的内容:

/opt/local/lib/ruby1.9/gems/1.9.1/gems/thin-1.2.2/lib/thin/request.rb:50: [BUG] 未知类型 0x22 (给出 0xc )

这是它正在谈论的行:

@parser = Thin::HttpParser.new ,

这并没有太大帮助。

有人有什么想法吗? 谢谢!

编辑:实际上,我记得不久前当我尝试安装最新版本的 MySQL gem 时遇到了这个错误。 我必须重新安装它,确保在“make install”之前执行“make clean”。 然而,thin 是从 gem 安装的,所以我不确定如何在这里做到这一点......

So, I'm just trying out Ramaze for a new project, and I'm wondering why it won't work with Thin, but will with ramaze start (which is webrick I guess). Here's what it gives me:

/opt/local/lib/ruby1.9/gems/1.9.1/gems/thin-1.2.2/lib/thin/request.rb:50: [BUG] unknown type 0x22 (0xc given)

This is the line it's talking about:

@parser = Thin::HttpParser.new

which isn't too helpful.

Does anyone have any ideas? Thanks!

EDIT: Actually, I remember getting this error a while back when I was trying to install the latest version of the MySQL gem. I had to reinstall it being sure to do a "make clean" before "make install". However, thin was installed from a gem, so I'm not sure how I would be able to do that here...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

锦上情书 2024-08-01 22:44:39

这意味着您的 eventmachine 是使用 Ruby 1.8 编译的,但使用 Ruby 1.9 运行。
你有1.8/1.9的并行安装吗?

It means your eventmachine was compiled with Ruby 1.8 but runs with Ruby 1.9.
Do you have a parallel installation of 1.8/1.9?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文