[英]Cabal missing dependency error
$ cabal install git-annex --force-reinstalls --bindir=$HOME/bin.local -f"-assistant -webapp -webdav -pairing -xmpp -dns"
...
Configuring git-annex-5.20140116...
Building git-annex-5.20140116...
Preprocessing executable 'git-annex' for git-annex-5.20140116...
Remote/External.hs:29:8:
Could not find module `Control.Concurrent.STM'
It is a member of the hidden package `stm-2.4.2'.
Perhaps you need to add `stm' to the build-depends in your .cabal file.
It is a member of the hidden package `stm-2.2.0.1'.
Perhaps you need to add `stm' to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
git-annex-5.20140116 failed during the building phase. The exception was: ExitFailure 1
$ cabal install stm --force-reinstalls --bindir=$HOME/bin.local
Resolving dependencies...
All the requested packages are already installed:
stm-2.4.2
Use --reinstall if you want to reinstall anyway.
如何強制Cabal忽略Could not find module...
錯誤並安裝git-annex
?
其他人在這里報告了同樣的問題。 開發商說這是固定的,但顯然不是。
編譯器錯誤消息描述了該問題:
Could not find module `Control.Concurrent.STM' It is a member of the hidden package `stm-2.4.2'. Perhaps you need to add `stm' to the build-depends in your .cabal file.
因此,如果您將cabal unpack git-annex
,cd進入目錄,編輯cabal文件以將stm添加到build-depends,然后從那里運行cabal install
,這應解決問題...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.