2016-08-06 7 views
0

내가 (OS X의) 음모를 사용하여 csv를 설치하려고이 오류를 받고 있어요 : 나는 음모, ghc-pkg recache를 업데이트하고, SO 제안에 다른 답변으로 시도음모 ExitFailure 1

Resolving dependencies... 
Configuring csv-0.1.2... 
Building csv-0.1.2... 
Failed to install csv-0.1.2 
Build log (/Users/roshnal/.cabal/logs/csv-0.1.2.log): 
Configuring csv-0.1.2... 
Building csv-0.1.2... 
Preprocessing library csv-0.1.2... 
[1 of 1] Compiling Text.CSV   (Text/CSV.hs, dist/build/Text/CSV.o) 

Text/CSV.hs:70:1: 
    Bad interface file: /Library/Haskell/ghc-7.10.2-x86_64/lib/parsec-3.1.9/Text/ParserCombinators/Parsec.hi 
     Something is amiss; requested module [email protected]_8fSmqig53hOL2SEu1k9Tv0:Text.ParserCombinators.Parsec differs from name found in the interface file AwpZ7A1As1bGsDMsWSTZ1J:Text.ParserCombinators.Parsec 
cabal: Error: some packages failed to install: 
csv-0.1.2 failed during the building phase. The exception was: 
ExitFailure 1 

, library-profilingFalse에 설정 (~/.cabal/config에서). 그들 중 누구도 일하고 ​​있지 않습니다.

이 패키지를 설치하려면 어떻게해야합니까? 이전에 cabal install을 사용하여 다른 패키지를 설치했습니다.

감사합니다.

ErirR는 그의 대답에 제안한 것처럼 편집

, 나는 ghc-pkg list을 실행하고이는 내가 가진 출력됩니다. 나는 parsec을 여러 번 설치하는 것으로 보이지 않습니다.

/Library/Frameworks/GHC.framework/Versions/7.10.2-x86_64/usr/lib/ghc-7.10.2/package.conf.d 
Cabal-1.22.4.0 
GLURaw-1.5.0.1 
GLUT-2.7.0.1 
HTTP-4000.2.20 
HUnit-1.2.5.2 
ObjectName-1.1.0.0 
OpenGL-2.12.0.1 
OpenGLRaw-2.5.1.0 
QuickCheck-2.8.1 
StateVar-1.1.0.0 
array-0.5.1.0 
async-2.0.2 
attoparsec-0.13.0.1 
base-4.8.1.0 
bin-package-db-0.0.0.0 
binary-0.7.5.0 
bytestring-0.10.6.0 
case-insensitive-1.2.0.4 
cgi-3001.2.2.2 
containers-0.5.6.2 
deepseq-1.4.1.1 
directory-1.2.2.0 
exceptions-0.8.0.2 
fgl-5.5.2.1 
filepath-1.4.0.0 
ghc-7.10.2 
ghc-prim-0.4.0.0 
hashable-1.2.3.3 
haskeline-0.7.2.1 
haskell-src-1.0.2.0 
hoopl-3.10.0.2 
hpc-0.6.0.2 
hscolour-1.23 
html-1.0.1.2 
integer-gmp-1.0.0.0 
mtl-2.2.1 
multipart-0.1.2 
network-2.6.2.1 
network-uri-2.6.0.3 
old-locale-1.0.0.7 
old-time-1.1.0.3 
parallel-3.2.0.6 
parsec-3.1.9 // <-- Here's parsec 
pretty-1.1.2.0 
primitive-0.6 
process-1.2.3.0 
random-1.1 
regex-base-0.93.2 
regex-compat-0.95.1 
regex-posix-0.95.2 
rts-1.0 
scientific-0.3.3.8 
split-0.2.2 
stm-2.4.4 
syb-0.5.1 
template-haskell-2.10.0.0 
terminfo-0.4.0.1 
text-1.2.1.3 
tf-random-0.5 
time-1.5.0.1 
transformers-0.4.2.0 
transformers-compat-0.4.0.4 
unix-2.7.1.0 
unordered-containers-0.2.5.1 
vector-0.11.0.0 
xhtml-3000.2.1 
zlib-0.5.4.2 
+0

이것은 패키지 db가 어떤 식 으로든 손상되었다는 것을 의미합니다. 어떻게 해결할 수 없으면 여전히 패키지 db를 해독하고 처음부터 시도 할 수 있습니다. – user2407038

+0

@ user2407038 음모를 제거하고 다시 시도하거나, 하스켈과 관련된 모든 것을 제거하고 다시 시작해야한다는 것을 의미합니까? o_O – Roshnal

+0

* 패키지 데이터베이스 * 만 삭제하십시오. 수행 방법에 대한 설명은 [here] (http://stackoverflow.com/questions/12048352/my-cabal-packages-are-fubar-how-can-i-purge-them-and-start-over)를 참조하십시오. 그래서. – user2407038

답변

0

이 SO 스레드가 관련이있을 수 :

"requested module differs from name found in the interface file"

내가 ghc-pkg list를 실행하고 파섹 패키지의 여러 설치 횟수가 있는지 확인합니다.

+0

나는 그 명령을 실행하고 내 질문에 출력을 게시 - 난 단 하나 parsec 보인다. 그리고 연결된 질문에 관해서는, 미안하지만, 나는 그것을 돕기 위해 어떤 부분을 사용할 수 있는지 알 수 없다. (나는 여전히 하스켈/카발에 대해 익숙하지 않다.) – Roshnal