Snow Leopard 上的 Merb 问题
我最近开始研究 Merb,用于办公室周围的一些小型项目。我正在尝试按照文档设置我的第一个项目,并且遇到异常,例如:
foo:beta user$ merb
Merb root at: /Users/user/code/merb/beta
Loading init file from ./config/init.rb
Loading ./config/environments/development.rb
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 39794
~ Compiling routes...
~ Activating slice 'MerbAuthSlicePassword' ...
~
~ FATAL: Mongrel is not installed, but you are trying to use it. You need to either install mongrel or a different Ruby web server, like thin.
我已经从 gem 以及 MacPorts 安装了 Mongrel,并且对此异常感到困惑。
重要统计数据:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10]
从我安装的 gems 来看:
merb (1.1.0)
merb-action-args (1.1.0)
merb-assets (1.1.0)
merb-auth (1.1.0)
merb-auth-core (1.1.0)
merb-auth-more (1.1.0)
merb-auth-slice-password (1.1.0)
merb-cache (1.1.0)
merb-core (1.1.0)
merb-exceptions (1.1.0)
merb-gen (1.1.0)
merb-haml (1.1.0)
merb-helpers (1.1.0)
merb-mailer (1.1.0)
merb-param-protection (1.1.0)
merb-slices (1.1.0)
merb_datamapper (1.1.0)
mongrel (1.1.5)
Merb 文档不存在,所以我发现自己陷入困境。
提前致谢。
I've recently started looking at Merb, for use with some small projects around the office. I'm trying to set up my first project following the docs, and am encountering an exception such as:
foo:beta user$ merb
Merb root at: /Users/user/code/merb/beta
Loading init file from ./config/init.rb
Loading ./config/environments/development.rb
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 39794
~ Compiling routes...
~ Activating slice 'MerbAuthSlicePassword' ...
~
~ FATAL: Mongrel is not installed, but you are trying to use it. You need to either install mongrel or a different Ruby web server, like thin.
I have installed Mongrel from gem as well as from MacPorts, and am confused by this exception.
Significant stats:
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin10]
From my installed gems:
merb (1.1.0)
merb-action-args (1.1.0)
merb-assets (1.1.0)
merb-auth (1.1.0)
merb-auth-core (1.1.0)
merb-auth-more (1.1.0)
merb-auth-slice-password (1.1.0)
merb-cache (1.1.0)
merb-core (1.1.0)
merb-exceptions (1.1.0)
merb-gen (1.1.0)
merb-haml (1.1.0)
merb-helpers (1.1.0)
merb-mailer (1.1.0)
merb-param-protection (1.1.0)
merb-slices (1.1.0)
merb_datamapper (1.1.0)
mongrel (1.1.5)
Merb documentation is non-existent, so I find myself stuck.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
尝试使用瘦处理程序。它比杂种快得多。
Try to use Thin handler. Its much faster than mongrel.
mongrel 已经过时了,并且并不总是适用于较新的红宝石。如果
thin
不起作用,请尝试使用 webrick (merb -a webrick
)。这是 ruby 上的默认服务器,应该可以正常工作(尽管它是最慢的)mongrel is quite outdated and doesn't always work with newer rubys. If
thin
doesn't work either try using webrick (merb -a webrick
). That's the default server on ruby, and should work fine (albeit it's the slowest of all)在 Merb 1.1 中,我发现如果您将此行添加到应用程序的 Gemfile(在应用程序根目录中),此错误就会消失:
gem "mongrel"
With Merb 1.1, I found that if you add this line to your app's Gemfile (in the app root) this error goes away:
gem "mongrel"