2012-12-13 3 views
3

저는 하스켈에서 새롭고 현재 Windows 7 OS를 사용 중입니다.Windows 7의 Haskell Yesod : 'yesod devel'문제가있는 개발 서버 시작

하스켈 프레임 워크 Yesod를 사용하여 웹 서비스를 개발하려고합니다. 내가 개발 서버를 시작합니다 yesod devel 명령을 실행할 때, 나는 다음과 같은 오류 얻을 : 나는 cabal configure를 실행하려고하고,이 때문에 내 경험 부족에 불구하고 내가 뭔가를 놓친 거지 느낌을 잘 실행하는 것

C:\Users\Sticky\workspace\Yesod\testYesod>yesod devel 
Yesod devel server. Press ENTER to quit 
Resolving dependencies... 
Configuring testYesod-0.0.0... 
cabal: At least the following dependencies are missing: 
data-default -any, 
hamlet ==1.1.*, 
hjsmin ==0.1.*, 
http-conduit >=1.5 && <1.7, 
monad-control ==0.3.*, 
persistent ==1.0.*, 
persistent-sqlite ==1.0.*, 
shakespeare-css ==1.0.*, 
shakespeare-js ==1.0.*, 
shakespeare-text ==1.0.*, 
wai-extra ==1.3.*, 
warp ==1.3.*, 
yaml ==0.8.*, 
yesod ==1.1.*, 
yesod-auth ==1.1.*, 
yesod-core >=1.1.2 && <1.2, 
yesod-default ==1.1.*, 
yesod-form ==1.1.*, 
yesod-static ==1.1.*, 
yesod-test ==0.3.* 
Rebuilding application... 
Forcing recompile for .\Model.hs because of config/models 
Forcing recompile for .\Foundation.hs because of config/routes 
Forcing recompile for .\Foundation.hs because of messages/en.msg 
Forcing recompile for .\Foundation.hs because of templates/default-layout-wrappe 
r.hamlet 
Forcing recompile for .\Foundation.hs because of templates/default-layout.hamlet 

Forcing recompile for .\Handler\Home.hs because of templates/homepage.hamlet 
cabal: Run the 'configure' command fBuild failure, pausing... 
irst. 

을, 어떤 방향은 매우 높이 평가 될 것이다. 나는 관련된 질문을 찾을 수 없었지만, 이것은 내가 알아야 할 것을 정확히 알지 못하기 때문에 가능성이 높습니다. :)

+1

프로젝트 디렉토리에'cabal install --only-dependencies'를 시도하십시오. 편집 : 아, 그리고 그것을 수행하기 전에'cabal install alex'를 실행하십시오. 'hjsmin'은 최소한'alex'를 필요로합니다. 행복하지는 않지만 잘 아는 것은 아닙니다. 그런 다음 첫 번째 명령을 실행하기 전에 경로에 있는지 확인하십시오. – asm

+0

건배! 매력처럼 일했다 : D – stickybynature

답변

2

프로젝트의 의존성이 설치되지 않은 것처럼 보입니다. 프로젝트 디렉토리에서 다음 명령을 실행하십시오 :

# alex at least, possibly also happy, are required by hjsmin 
cabal install happy alex 
# Make sure alex is on your path, then 
cabal install --only-dependencies