首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >阴谋缺失依赖错误

阴谋缺失依赖错误
EN

Stack Overflow用户
提问于 2014-01-27 00:36:33
回答 1查看 1.2K关注 0票数 0
代码语言:javascript
复制
$ 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

其他人报告了同样的问题,这里。开发商说它是固定的,但显然不是。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-12 08:24:36

编译器错误消息描述了这个问题:

找不到模块Control.Concurrent.STM' It is a member of the hidden packagestm-2.4.2‘。也许您需要在.cabal文件中添加“`stm”到构建依赖项。

因此,如果将cabal unpack git-annex、cd放入目录,编辑阴谋文件以将stm添加到编译依赖项中,然后从那里运行cabal install,这将解决问题.

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21371272

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档