2013-10-10 4 views
1

스냅 웹 프레임 워크로 웹 응용 프로그램을 구축하고 있습니다. snap init으로 프로젝트를 만들었습니다.스냅 웹 프레임 워크 및 동적 재 컴파일

다음 cabal install -fdevelopment, cabal install을 실행하면 크롬에서 색인 페이지를 방문하려고 할 때이 오류가 표시됩니다.

아이디어가 있으십니까?

------------------------------------------------------------------------------ 
-- | 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. 

그것은 내가 먼저 쓴 같은 슬프게도 여전히 같은 취성 :

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

flags: '-static' not recognized 

답변

2

여기에 동적 로더에서 관련 코멘트입니다. hackily 주위에 패치하기는 쉽지만, 인터프리터가 지원하지 않는 플래그를 블랙리스트에 올리는 것보다 더 나은 장기적인 솔루션을 선호합니다.

시스템에 라이브러리를 패치하는 데 편리하면 snap-loader-dynamic 패키지의 Snap/Loader/Dynamic.hs 86 번 줄 블랙리스트에 "-static"을 추가 할 수 있습니다. 그렇지 않으면 새로운 릴리스가 나올 때까지 기다려야합니다. github에 패치가 적용되어 출시를 기다리고 있습니다.