[英]Pandoc failed to compile on GHC 7.8.2
I tried to install Pandoc on GHC-7.8.2 , Fedora 19 and got problem with zip-archive package. 我试图在GHC-7.8.2 , Fedora 19上安装Pandoc并且遇到了zip-archive包的问题。
zip-archive-0.2.2.1 failed during the building phase. zip-archive-0.2.2.1在构建阶段失败。
The exception was: ExitFailure 1 例外是:ExitFailure 1
So I get last one from github, and tried to install it from sources and still getting errors: 所以我从github获得了最后一个,并试图从源代码安装它并仍然得到错误:
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
I have zlib, zlib,-devel, ghc-zlib, ghc-zlib-devel already installed 我已经安装了zlib,zlib,-devel,ghc-zlib,ghc-zlib-devel
Update: 更新:
I finally get rid of this problem after manual replacement of my /usr/bin/cabal executable with newer 1.20, built by root, but encountered with another one: 手动更换我的/ usr / bin / cabal可执行文件后,我最终摆脱了这个问题,更新的1.20,由root构建,但遇到另一个:
[ 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:
Reinstalling haddock didn't help. 重新安装haddock没有帮助。
Any suggestions how to fix this? 有任何建议如何解决这个问题?
It looks like you're missing the dynamic libraries. 看起来你错过了动态库。 Most likely, you need to install cabal-install-1.18 or later, wipe our your package database, and install again. 最有可能的是,您需要安装cabal-install-1.18或更高版本,擦除我们的软件包数据库,然后重新安装。 For more information, see: https://plus.google.com/115504368969270249241/posts/R8EYrABDrvv 有关详细信息,请参阅: https : //plus.google.com/115504368969270249241/posts/R8EYrABDrvv
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.