Untuk kehidupan saya, saya tidak tahu cara menginstal pandoc. Saya mencoba pendekatan yang direkomendasikan pada repo Github-nya serta semua 3 pendekatan yang direkomendasikan di situs pandoc . Saya menginstal di Ubuntu 12,04 jadi saya pertama kali melakukannya sudo apt-get install haskell-platform
.
Di sinilah kesalahan terjadi pada setiap langkah:
1) Instalasi seperti yang direkomendasikan pada repo 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.
2) Metode pemasangan utama di situs Pandoc:
# cabal install pandoc
[35 of 45] Compiling Text.Pandoc.Parsing ( src/Text/Pandoc/Parsing.hs, dist/build/Text/Pandoc/Parsing.o )
cabal: Error: some packages failed to install:
pandoc-1.11.1 failed during the building phase. The exception was:
ExitFailure 9
3) "Jika distribusi saya memiliki GHC 6.12"
# cabal install cabal-install
[46 of 67] Compiling Distribution.Simple.LocalBuildInfo ( Distribution/Simple/LocalBuildInfo.hs, dist/build/Distribution/Simple/LocalBuildInfo.o )
cabal: Error: some packages failed to install:
Cabal-1.16.0.3 failed during the building phase. The exception was:
ExitFailure 9
cabal-install-1.16.0.2 depends on Cabal-1.16.0.3 which failed to install.
4) Memasang tarball:
# cabal install pandoc
[23 of 45] Compiling Text.Pandoc.Writers.Texinfo ( src/Text/Pandoc/Writers/Texinfo.hs, dist/build/Text/Pandoc/Writers/Texinfo.o )
cabal: Error: some packages failed to install:
pandoc-1.11.1 failed during the building phase. The exception was:
ExitFailure 9
sudo apt-get install pandoc