2016-09-11 9 views
6

나는 처음에 Hlint를 설치하려고했습니다. cabal install hlint하지만 난 오류가있어 (?) 나는 hlint 해당 패키지의 의존성 것을 읽을 수 있기 때문에 hlint를 설치하려고 할 때 구시간 - 1.1.0.3을 둘러싼 오류가 발생합니다.

cabal: Error: some packages failed to install: 
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install. 
haskell-src-exts-1.18.2 depends on old-time-1.1.0.3 which failed to install. 
hlint-1.9.37 depends on old-time-1.1.0.3 which failed to install. 
old-time-1.1.0.3 failed during the configure step. The exception was: 
ExitFailure 77 

가 그럼 난 GHC-모드를 설치하려고합니다. 문제가 해결 될 수 있다고 생각합니다. 그래서 나는 내게 오류를 준 cabal install ghc-mod을했다.

cabal: Error: some packages failed to install: 
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install. 
ghc-mod-5.6.0.0 depends on old-time-1.1.0.3 which failed to install. 
haskell-src-exts-1.17.1 depends on old-time-1.1.0.3 which failed to install. 
hlint-1.9.35 depends on old-time-1.1.0.3 which failed to install. 
old-time-1.1.0.3 failed during the configure step. The exception was: 
ExitFailure 77 

그래서 내 패키지 old-time-1.1.0.3 주위에 같은 문제로 보인다 난 정말이 문제를 해결하는 방법을 잘 모릅니다. 어떤 팁?

해결책 :

다음 줄을 포함하기 위해 음모 설정 파일 (당신이 "음모 사용자 설정 초기화"를 실행하여 위치를 확인 할 수 있습니다) 수정의

extra-prog-path: C:\Program Files\Haskell Platform\8.0.1\msys\usr\bin 
extra-lib-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\lib 
extra-include-dirs: C:\Program Files\Haskell Platform\8.0.1\mingw\include 
+0

이러한 문제가 실제로 해결되기를 바란다면, (적어도 실패한 명령의 결과에는'-v3'을 사용하여) 훨씬 더 자세하게 설명해야합니다. 빠른 google 검색 결과에 따르면 gcc의 설치가 잘못되었거나 (또는 ​​ghc가 다른 c 컴파일러를 사용해야하는 것보다) – user2407038

답변

2

있습니다 많이 cabal-installghc 버전을 포함하여 진행 상황을 설명하기 위해 놀 수있는 변수. 귀하의 질문에 cabal --versionghc --version 출력을 포함 시키면 유용 할 것입니다.

그렇습니다 : Stack을 사용하여 설치를 시도하는 것이 좋습니다. Stack이 설치되면 (POSIX 시스템에서는 일반적으로 curl -sSL https://get.haskellstack.org/ | sh을 실행하기에 충분 함) stack --resolver lts-6.16 --install-ghc --no-system-ghc install hlint과 함께 설치할 수 있습니다.

0

Windows 또는 Linux를 사용하고 계십니까? ghc --version는 무엇을 말합니까? ghc-pkg old-time은 어떨까요? cabal install old-time을 직접 실행하는 것이 좋습니다. 오류를 직접 재현해야합니다.

4

실패한 위치를 확인하는 가장 좋은 방법은 실패한 각 패키지를 차례로 살펴보고 차례대로 설치하는 것입니다.

나는있는 hlint에 나타나서 내가 cabal install haskell-src-exts에 시도 할 때 제대로 설치되지 않은 happy했다 haskell-src-exts에 문제가 있었다.