对于我的生活,我无法弄清楚如何安装 pandoc。我尝试了其 Github 存储库上推荐的方法以及pandoc 站点上推荐的所有3 种方法。我在 Ubuntu 12.04 上安装,所以我首先做了sudo apt-get install haskell-platform
.
以下是每一步发生错误的地方:
1) 按照 Github 存储库上的建议进行安装:
# cabal install --enable-tests
Registering zlib-conduit-1.0.0...
cabal: Error: some packages failed to install:
http-conduit-1.9.4.5 depends on mime-types-0.1.0.3 which failed to install.
mime-types-0.1.0.3 failed during the building phase. The exception was:
ExitFailure 9
pandoc-1.12 depends on mime-types-0.1.0.3 which failed to install.
Run Code Online (Sandbox Code Playgroud)
2) Pandoc 站点上的主要安装方法:
# cabal install pandoc
[35 of 45] Compiling Text.Pandoc.Parsing ( src/Text/Pandoc/Parsing.hs, dist/build/Text/Pandoc/Parsing.o …
Run Code Online (Sandbox Code Playgroud)