Windows 10에 clanki이라는 프로그램을 설치하려고합니다. 설치 문서에 'cabal install clanki'를 사용하라고 나와 있습니다. 나는 cabal을 다운로드 한 다음 ghc를 다운로드했습니다. 이제 패키지 base
의 버전 문제가 발생합니다. 기장이있는 기지를 다운 그레이드하는 방법은 무엇입니까?
$ cabal install clanki
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
trying: clanki-1.2.7 (user goal)
next goal: base (dependency of clanki-1.2.7)
rejecting: base-4.9.0.0/installed-4.9... (conflict: clanki => base<=4.9.0)
rejecting: base-4.9.0.0, base-4.8.2.0, base-4.8.1.0, base-4.8.0.0,
base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1, base-4.6.0.0,
base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0, base-4.3.1.0,
base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0, base-4.1.0.0,
base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from non-upgradeable
package requires installed instance)
Dependency tree exhaustively searched.
그래서 clanki는 (스택 음모보다 더 명확하게 말한다)이 지난 4.9로 기반을 필요로하고, 나는 다음 4.8.2.0에 기반을 다운 그레이드하고 싶습니다.
ghc-pkg unregister base
을 시도하면 허용되지 않습니다. 심지어
--force
로 : 내가 언급 한 바와 같이
$ ghc-pkg unregister base --force
unregistering would break the following packages: xhtml-3000.2.1 Win32-2.3.1.1 transformers-0.5.2.0 time-1.6.0.1 template-haskell-2.11.0.0 process-1.4.2.0 pretty-1.1.3.3 hpc-0.6.0.3 hoopl-3.10.2.1 haskeline-0.7.2.3 ghci-8.0.1 ghc-boot-th-8.0.1 ghc-boot-8.0.1 ghc-8.0.1 filepath-1.4.1.0 directory-1.2.6.2 deepseq-1.4.2.0 containers-0.5.7.1 Cabal-1.24.0.0 bytestring-0.10.8.1 binary-0.8.3.0 array-0.5.1.1 (ignoring)
, 나는 스택도했지만, 결국 그것은 또한베이스의 잘못된 버전으로 내려 온다. 이 패키지를 어떻게 다운 그레이드 할 수 있습니까?
'와 제약 조건을 무시 대해 음모를 설치하는 방법 clanki --allow-새로운 base' : 이러한 경우, 또는 당신이 굵은 느낌을 간단하게, 당신은 적절한 옵션과 의존성에 상한을 무시
cabal
을 지시 할 수 있습니다 –@ JoachimBreitner : 실제로 그 옵션을 알지는 못했지만 그게 좋습니다! 왜 대답하지 그래? – leftaroundabout
예, GHC-7.10.3이 작동했습니다. 감사! – garci560