我尝试在 GHC-7.8.2 , Fedora 19 上安装 Pandoc 并遇到 zip-archive 的问题包。
zip-archive-0.2.2.1在构建阶段失败。
例外是:ExitFailure 1
所以我从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
我已经安装了zlib,zlib,-devel,ghc-zlib,ghc-zlib-devel
更新
在用root构建的更新的1.20手动替换我的 / usr / bin / cabal 可执行文件后,我终于摆脱了这个问题,但遇到了另一个:
[ 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:
重新安装黑线鳕并没有帮助。
有关如何解决此问题的任何建议吗?
答案 0 :(得分:3)
您似乎错过了动态库。最有可能的是,您需要安装cabal-install-1.18或更高版本,擦除我们的软件包数据库,然后重新安装。有关详细信息,请参阅:https://plus.google.com/115504368969270249241/posts/R8EYrABDrvv