2016-10-25 18 views
1

나는 하스켈 문제들 중 일부에 대해 연구 중이다. 안타깝게도 hspec을 설치하려고하면 stack test이 실패합니다.이 스택 설치 문제를 해결하는 방법은 무엇입니까?

이 디버깅 방법을 모르겠습니다. 나는 어떤 도움을 주셔서 감사합니다.

출력 :

$ stack install hspec 
quickcheck-io-0.1.3: configure 
quickcheck-io-0.1.3: build 
hspec-expectations-0.7.2: configure 
hspec-expectations-0.7.2: build 
Progress: 2/4 
-- While building package hspec-expectations-0.7.2 using: 
     /Users/me/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file" 
    Process exited with code: ExitFailure 1 
    Logs have been written to: /Users/me/projects/excercism.io/haskell/space-age/.stack-work/logs/hspec-expectations-0.7.2.log 

    Configuring hspec-expectations-0.7.2... 
    Building hspec-expectations-0.7.2... 
    Preprocessing library hspec-expectations-0.7.2... 
    <command line>: cannot satisfy -package-id HUnit-1.3.1.1-21JuQs5D85SLjuJsLVrBpA 
     (use -v for more information) 


-- While building package quickcheck-io-0.1.3 using: 
     /Users/me/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.0.0 build --ghc-options " -ddump-hi -ddump-to-file" 
    Process exited with code: ExitFailure 1 
    Logs have been written to: /Users/me/projects/excercism.io/haskell/space-age/.stack-work/logs/quickcheck-io-0.1.3.log 

    Configuring quickcheck-io-0.1.3... 
    Building quickcheck-io-0.1.3... 
    Preprocessing library quickcheck-io-0.1.3... 
    <command line>: cannot satisfy -package-id HUnit-1.3.1.1-21JuQs5D85SLjuJsLVrBpA 
     (use -v for more information) 

모든 로그 파일은 기본적으로 동일 보인다. stack install -v hspec을 실행하면 변경되지 않습니다.

# /Users/me/projects/excercism.io/haskell/space-age/.stack-work/logs/hspec-expectations-0.7.2.log 
    Building hspec-expectations-0.7.2... 
    Preprocessing library hspec-expectations-0.7.2... 
    <command line>: cannot satisfy -package-id HUnit-1.3.1.1-21JuQs5D85SLjuJsLVrBpA 
     (use -v for more information) 
me:space-age λ less /Users/me/projects/excercism.io/haskell/space-age/.stack-work/logs/hspec-expectations-0.7.2.log 

디버깅 정보 :

$ stack --version 
Version 1.2.0 x86_64 hpack-0.14.0 

$ type -a stack 
stack is /Users/me/.local/bin/stack 
+0

'stack install hspec'은 저의 경우 stack, cabal, ghc 같은 버전으로 작동합니다. 특별한 stack.yaml 파일을 사용하고 있습니까? – crockeea

+0

어떻게 Stack 및 GHC를 설치 했습니까? –

+0

잠시 전에 스택을 다운로드했습니다. 실제로 기억하지 마십시오. 그러나'스택 업그레이드 '로 업데이트했습니다. ghc는 원래 haskell 플랫폼을 통해 설치 되었기 때문에 충돌이 발생할 수 있습니다. 어떻게 디버깅 할 수 있습니까? – beane

답변

1

그것은 전역에 기인는 ghc를 설치했습니다.

디렉토리와 Haskell 심볼릭 링크를 /usr/local/bin/에서 제거하여이 문제를 해결할 수있었습니다.

관련 문제