如何在安装图表时修复这些cabal安装错误?

时间:2016-02-29 01:23:40

标签: haskell cabal haskell-diagrams

我正在尝试使用Cabal安装用haskell编写的图表包。 运行cabal install diagrams

时出现以下错误
[~]$ cabal install diagrams
Resolving dependencies...
In order, the following will be installed:
bytes-0.15.2 (via: linear-1.20.4) (reinstall) (changes: binary-0.8.2.1 -> 0.6.4.0)
linear-1.20.4 (via: diagrams-contrib-1.3.0.8 force-layout-0.4.0.3 diagrams-lib-1.3.1.1 diagrams-core-1.3.0.6 active-0.2.0.8) (new package)
active-0.2.0.8 (via: diagrams-lib-1.3.1.1) (new package)
diagrams-core-1.3.0.6 (via: diagrams-1.3.0.1 diagrams-contrib-1.3.0.8 diagrams-svg-1.4 diagrams-lib-1.3.1.1) (new package)
diagrams-lib-1.3.1.1 (via: diagrams-1.3.0.1 diagrams-contrib-1.3.0.8 diagrams-svg-1.4) (new package)
diagrams-svg-1.4 (via: diagrams-1.3.0.1) (new package)
force-layout-0.4.0.3 (via: diagrams-contrib-1.3.0.8) (new package)
diagrams-contrib-1.3.0.8 (via: diagrams-1.3.0.1) (new package)
diagrams-1.3.0.1 (new package)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
[1 of 1] Compiling Main             ( /tmp/cabal-tmp-12921/bytes-0.15.2/dist/setup/setup.hs, /tmp/cabal-tmp-12921/bytes-0.15.2/dist/setup/Main.o )
Linking /tmp/cabal-tmp-12921/bytes-0.15.2/dist/setup/setup ...
Configuring bytes-0.15.2...
Building bytes-0.15.2...
Preprocessing library bytes-0.15.2...
[1 of 5] Compiling Data.Bytes.Signed ( src/Data/Bytes/Signed.hs, dist/build/Data/Bytes/Signed.o )
[2 of 5] Compiling Data.Bytes.VarInt ( src/Data/Bytes/VarInt.hs, dist/build/Data/Bytes/VarInt.o )
[3 of 5] Compiling Data.Bytes.Put   ( src/Data/Bytes/Put.hs, dist/build/Data/Bytes/Put.o )
[4 of 5] Compiling Data.Bytes.Get   ( src/Data/Bytes/Get.hs, dist/build/Data/Bytes/Get.o )

src/Data/Bytes/Get.hs:205:15:
    Not in scope: `B.lookAhead'
    Perhaps you meant one of these:
      `S.lookAhead' (imported from Data.Serialize.Get),
      `S.lookAheadM' (imported from Data.Serialize.Get),
      `S.lookAheadE' (imported from Data.Serialize.Get)

src/Data/Bytes/Get.hs:207:16:
    Not in scope: `B.lookAheadM'
    Perhaps you meant one of these:
      `S.lookAheadM' (imported from Data.Serialize.Get),
      `S.lookAhead' (imported from Data.Serialize.Get),
      `S.lookAheadE' (imported from Data.Serialize.Get)

src/Data/Bytes/Get.hs:209:16:
    Not in scope: `B.lookAheadE'
    Perhaps you meant one of these:
      `S.lookAheadE' (imported from Data.Serialize.Get),
      `S.lookAhead' (imported from Data.Serialize.Get),
      `S.lookAheadM' (imported from Data.Serialize.Get)
Failed to install bytes-0.15.2
cabal: Error: some packages failed to install:
active-0.2.0.8 depends on bytes-0.15.2 which failed to install.
bytes-0.15.2 failed during the building phase. The exception was:
ExitFailure 1
diagrams-1.3.0.1 depends on bytes-0.15.2 which failed to install.
diagrams-contrib-1.3.0.8 depends on bytes-0.15.2 which failed to install.
diagrams-core-1.3.0.6 depends on bytes-0.15.2 which failed to install.
diagrams-lib-1.3.1.1 depends on bytes-0.15.2 which failed to install.
diagrams-svg-1.4 depends on bytes-0.15.2 which failed to install.
force-layout-0.4.0.3 depends on bytes-0.15.2 which failed to install.
linear-1.20.4 depends on bytes-0.15.2 which failed to install.

我使用命令分别使用cabal安装了字节-0.15.2 cabal install bytes。怎么可能出错?当安装图表时,cabal似乎不必要地再次尝试安装字节。

如何解决这些编译错误?

我在Ubuntu 14.04上使用ghc版本7.6.3和cabal版本1.22.7.0运行

0 个答案:

没有答案