0

我正在尝试使用 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.

我已经使用命令单独安装了 bytes-0.15.2 和 cabal cabal install bytes。可能出了什么问题?安装图表时,cabal 似乎不必要地尝试再次安装字节。

我能做些什么来修复这些编译错误?

我在带有 ghc 版本 7.6.3 和 cabal 版本 1.22.7.0 的 Ubuntu 14.04 上运行它

4

0 回答 0