【发布时间】:2022-01-25 19:28:27
【问题描述】:
我正在尝试在新的 Ubuntu 机器上安装 pandoc。首先,我安装了haskell平台。然后我使用命令cabal install pandoc 安装了pandoc,但随后收到以下错误消息。我该如何解决?
[1 of 1] Compiling Data.Ipynb ( src/Data/Ipynb.hs, dist/build/Data/Ipynb.o )
src/Data/Ipynb.hs:152:23: error:
• No instance for (Ord Value)
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Ord JSONMeta)
|
152 | deriving (Show, Eq, Ord, Generic, Semigroup, Monoid, FromJSON)
| ^^^
src/Data/Ipynb.hs:479:23: error:
• No instance for (Ord Value)
arising from the first field of ‘JsonData’ (type ‘Value’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Ord MimeData)
|
479 | deriving (Show, Eq, Ord, Generic)
| ^^^
Failed to install ipynb-0.2
cabal: Error: some packages failed to install:
ipynb-0.2-12lvW0D0287FL7WAB5JQxT failed during the building phase. The
exception was:
ExitFailure 1
pandoc-2.17.0.1-5yDcj1RH0pT4FRdq4hDaRb depends on pandoc-2.17.0.1 which failed
to install.
【问题讨论】:
-
不需要从源代码构建,参见pandoc.org/installing.html
标签: ubuntu haskell installation pandoc