使用stack 1.2.0
和LTS 7.0
我收到以下錯誤安裝shuffle庫安裝洗牌庫:錯誤與堆棧
$ cabal get shuffle
$ cd shuffle-0.1.3.3
$ stack build
...
/tmp/shuffle-0.1.3.3/Setup.hs:2:1: error:
Failed to load interface for ‘Distribution.Simple.UUAGC’
Perhaps you meant
Distribution.Simple.UHC (from Cabal-1.24.0.0)
Distribution.Simple.GHC (from Cabal-1.24.0.0)
Distribution.Simple.JHC (from Cabal-1.24.0.0)
Use -v to see a list of the files searched for.
/tmp/shuffle-0.1.3.3/Setup.hs:3:1: error:
Failed to load interface for ‘UU.UUAGC’
Use -v to see a list of the files searched for.
-- While building package shuffle-0.1.3.3 using:
/usr/local/bin/ghc --make -odir /tmp/shuffle-0.1.3.3/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup -hidir /tmp/shuffle-0.1.3.3/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup -i -i. -package=Cabal-1.24.0.0 -clear-package-db -global-package-db -package-db=/home/asr/.stack/snapshots/x86_64-linux/lts-7.0/8.0.1/pkgdb /tmp/shuffle-0.1.3.3/Setup.hs -o /tmp/shuffle-0.1.3.3/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup
Process exited with code: ExitFailure 1
我使用以下stack.yaml
文件:
resolver: lts-7.0
# Local packages, usually specified by relative directory name
packages:
- '.'
extra-deps:
- logict-state-0.1.0.2
- pqueue-1.3.1.1
- uhc-util-0.1.6.6
- uuagc-0.9.52.1
- uuagc-cabal-1.0.6.0
- uulib-0.9.22
待辦事項我需要在圖書館或stack.yaml
中添加/更改某些內容? (我使用cabal-install
沒有問題)。
'uuagc-cabal'程序列在'stack.yaml'文件中。它不應該夠了嗎? – asr
我不這麼認爲,堆棧只使用extra-deps來解決依賴關係,它似乎並沒有積極地安裝它們。沒有cabal文件中的額外信息,就無法知道這個軟件包是否需要作爲依賴項。 – glguy
我看到[#897](https://github.com/commercialhaskell/stack/issues/897)被固定在'stack'上游。我是否需要等待釋放,包括修復或我可以使用'stack' 1.2.0來安裝'shuflle'嗎? – asr