2014-01-27 3 views
0
$ 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을 설치할 수 있습니까?종속 변수 누락 된 종속성 오류

다른 사람이 같은 문제를보고했습니다. here. 개발자는 문제가 해결되었지만 분명히 그렇지 않다고합니다. 당신 cabal unpack git-annex 디렉토리에 CD를, 더 - 의존 빌드에 STM을 추가 할 수있는 도당 파일을 편집 한 다음 cabal install를 실행한다면

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. 

:

+1

아마도 수정이 만들어진 이후로 릴리스되지 않았습니다. Repo를 직접 복제하고 현재 프로젝트 헤드에서 설치를 시도 했습니까? –

+3

'--force-reinstalls'하지 마십시오. 그것은 당신이 가지고있는 문제를 해결하지 않을 것이고, 쉽게 심각한 문제를 일으킬 수 있습니다. 'ghc-pkg check' (깨진 꾸러미를 지켜보세요)를보고 여러분이 이미 미래의 문제를 일으켰는지 확인하십시오. –

+0

Cabal이 (STM과 관련없는) 다른 패키지를 설치하기를 거부했기 때문에'--force-reinstalls'를 사용하고있었습니다. – pts

답변

1

컴파일러 오류 메시지가 문제를 설명 거기에서 그 문제를 해결해야합니다 ...