雪豹上的Merb问题

时间:2010-04-16 01:08:25

标签: ruby mongrel 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]

来自我安装的宝石:

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文档不存在,所以我发现自己陷入困境。

提前致谢。

3 个答案:

答案 0 :(得分:2)

尝试使用Thin处理程序。它比杂种更快。

gem install thin
merb -a thin

答案 1 :(得分:1)

mongrel已经过时,并不总是适用于较新的rubys。如果thin不起作用,请尝试使用webrick(merb -a webrick)。这是ruby上的默认服务器,应该可以正常工作(尽管它是最慢的)

答案 2 :(得分:0)

使用Merb 1.1,我发现如果你将这一行添加到应用程序的Gemfile(在应用程序根目录中),这个错误就会消失:

gem“mongrel”