2014-05-13 3 views
3

GHC 7.8.2에서 컴파일하는 데 실패하고 우편 아카이브 패키지에 문제가있어.Pandoc 내가 <em>GHC-7.8.2</em>, <em>페도라 19</em>에 <em>Pandoc</em>를 설치하려고

zip-archive-0.2.2.1이 빌드 단계에서 실패했습니다. 그래서 GitHub의에서 마지막 하나를 얻을 ExitFailure 1

및 소스와 여전히 점점 오류를 설치하려고 :

예외였다

Preprocessing library zip-archive-0.2.2.1... 
/usr/bin/ld: cannot find -lHSzlib-0.5.4.1-ghc7.8.2 
/usr/bin/ld: cannot find -lHStext-1.1.1.2-ghc7.8.2 
/usr/bin/ld: cannot find -lHSmtl-2.2.0.1-ghc7.8.2 
/usr/bin/ld: cannot find -lHStransformers-0.4.1.0-ghc7.8.2 

내가 ZLIB, ZLIB이 - (STABLE), GHC-ZLIB, GHC-ZLIB-(STABLE)가 이미 설치

업데이트 :

드디어 또 다른 하나의 루트에 의해 건설 1.20 새와 실행 내 는/usr/빈/음모, 수동으로 교체 한 후이 문제를 제거하지만, 발생 얻을 :

[ 5 of 57] Compiling Text.Pandoc.Readers.Haddock.Lex (dist/build/Text/Pandoc/Readers/Haddock/Lex.hs, dist/build/Text/Pandoc/Readers/Haddock/Lex.o) 

dist/build/Text/Pandoc/Readers/Haddock/Lex.hs:500:17: 
    Pattern bindings containing unlifted types should use an outermost bang pattern: 

... 

dist/build/Text/Pandoc/Readers/Haddock/Lex.hs:504:31: 
    Couldn't match expected type ‘Bool’ with actual type ‘Int#’ 
    In the first argument of ‘(&&)’, namely ‘(offset >=# 0#)’ 
    In the expression: (offset >=# 0#) && (check ==# ord_c) 
    In the expression: 
     if (offset >=# 0#) && (check ==# ord_c) then 
      alexIndexInt16OffAddr alex_table offset 
     else 
      alexIndexInt16OffAddr alex_deflt s 

dist/build/Text/Pandoc/Readers/Haddock/Lex.hs:504:50: 
    Couldn't match expected type ‘Bool’ with actual type ‘Int#’ 
    In the second argument of ‘(&&)’, namely ‘(check ==# ord_c)’ 
    In the expression: (offset >=# 0#) && (check ==# ord_c) 
    In the expression: 
     if (offset >=# 0#) && (check ==# ord_c) then 
      alexIndexInt16OffAddr alex_table offset 
     else 
      alexIndexInt16OffAddr alex_deflt s 
Failed to install pandoc-1.12.4 
cabal: Error: some packages failed to install: 
pandoc-1.12.4 failed during the building phase. The exception was: 

재설치 대구가 도움이되지 않았다.

이 문제를 해결하는 방법에 대한 제안이 있으십니까?

답변

3

동적 라이브러리가 누락 된 것 같습니다. 대부분의 경우, cabal-install-1.18 이상을 설치하고 패키지 데이터베이스를 지우고 다시 설치해야합니다. 자세한 내용은 다음을 참조하십시오. https://plus.google.com/115504368969270249241/posts/R8EYrABDrvv

+0

감사합니다. 조금 도움이되었지만 컴파일 문제가 여전히 존재합니다. 업데이트를 참조하십시오. – Sigrlami

+0

이전 버전의 alex가 설치되어 있다고 생각합니다. 안전을 위해서'cabal install alex happy && cabal install pandoc'을 실행 해보십시오. –

+0

마이클이 맞습니다. http://ro-che.info/articles/2014-03-08-happy-alex-ghc-7.8.html –