2016-09-19 151 views
2

使用stack 1.2.0LTS 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沒有問題)。

回答

1

看來這個軟件包要求您安裝uuagc-cabal來構建它。從Cabal-1.23開始,可以在cabal文件的custom-setup部分中捕獲Setup.hs文件的這些程序包依賴關係。

大約有此功能的堆棧票,似乎是從這裏相通:

+0

'uuagc-cabal'程序列在'stack.yaml'文件中。它不應該夠了嗎? – asr

+1

我不這麼認爲,堆棧只使用extra-deps來解決依賴關係,它似乎並沒有積極地安裝它們。沒有cabal文件中的額外信息,就無法知道這個軟件包是否需要作爲依賴項。 – glguy

+0

我看到[#897](https://github.com/commercialhaskell/stack/issues/897)被固定在'stack'上游。我是否需要等待釋放,包括修復或我可以使用'stack' 1.2.0來安裝'shuflle'嗎? – asr