2010-04-16 81 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(在應用程序的根目錄),這個錯誤消失:

寶石「雜種」