2010-04-16 82 views
1

我最近开始考虑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.

我从宝石以及来自安装MacPorts的杂种,并且感到这个异常困惑。

重大统计:

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的文档是不存在的,所以我发现自己被卡住。

在此先感谢。

回答

1

杂种是相当过时,并不总是与新的红宝石。如果thin不起作用,请尝试使用webrick(merb -a webrick)。这是默认的红宝石服务器,并应该工作正常(尽管它是最慢的)

+0

webrick似乎工作,应该没问题的测试。非常感谢这些信息 – hamhoagie 2010-04-29 03:25:38

2

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

gem install thin 
merb -a thin 
+0

谢谢 - 安装瘦,得到不同的错误。 现在不得不使用webrick。 – hamhoagie 2010-04-29 03:25:21

0

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

宝石“杂种”