1

I'm building a web app with the Snap web framework. I have created a project with snap init.

I then cabal install -fdevelopment, cabal run, and I see this error when I attempt to visit the index page from chrome.

Any ideas?

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

flags: '-static' not recognized
4

1 回答 1

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"第 86 行的黑名单Snap/Loader/Dynamic.hs中。snap-loader-dynamic否则,您将不得不等到发布新版本。已经在github上打了补丁,等待发布。

于 2013-10-10T04:24:33.027 回答