2013-10-10 27 views
1

我正在用Snap web框架構建一個web應用程序。我用snap init創建了一個項目。捕捉web框架和動態重新編譯

然後我cabal安裝-fdevelopment,cabal運行,當我嘗試從chrome訪問索引頁時,我看到此錯誤。

任何想法?

A web handler threw an exception. Details: 
Unknown interpreter error: 

flags: '-static' not recognized 

回答

2

下面是從動態加載相關評論:

------------------------------------------------------------------------------ 
-- | Convert the command-line arguments passed in to options for the 
-- hint interpreter. This is somewhat brittle code, based on a few 
-- experimental datapoints regarding the structure of the command-line 
-- arguments cabal produces. 

這是可悲的還只是當我第一次寫它的脆。這很容易彌補,但我仍然希望有一個更好的長期解決方案,而不僅僅是將解釋器不支持的黑旗列入黑名單。

如果您可以在系統上修改庫,您可以將"-static"添加到包中Snap/Loader/Dynamic.hs行86的黑名單中。否則,你將不得不等到新版本發佈。它在github上打了補丁,只是等待發布。