3

我正在尝试在 Windows 8 上安装 Threadscope,以便遵循 Haskell 中的并行和并发编程 – 书。

我成功安装了 GTK+ –bundle,随后尝试通过 cabal 安装 threadscope。安装终止并显示以下信息:

cabal: Error: some packages failed to install:
gio-0.12.5.0 failed during the building phase. The exception was:
ExitFailure 1
gtk-0.12.5.0 depends on pango-0.12.5.0 which failed to install.
pango-0.12.5.0 failed during the building phase. The exception was:
ExitFailure 1
threadscope-0.2.2 depends on pango-0.12.5.0 which failed to install.

所以 GIO 和 pango 出了点问题。

进一步回顾发生的事情,控制台充满了这样的消息:

Not in scope: type constructor or class `CULLong'

编译 GIO 和 pango 时会出现这些消息,如下所示:

Linking dist/setup-wrapper\setup.exe ...
Configuring gio-0.12.5.0...
Building gio-0.12.5.0...
Preprocessing library gio-0.12.5.0...
[ 1 of 24] Compiling System.GIO.Signals ( dist\build\System\GIO\Signals.hs, dist\build\System\GIO\Signals.o )
[ 2 of 24] Compiling System.GIO.Types ( dist\build\System\GIO\Types.hs, dist\build\System\GIO\Types.o )

System\GIO\Types.chs:1027:31:
    Not in scope: type constructor or class `CULLong'
    Perhaps you meant `CULong' (imported from Foreign.C.Types)

...

和,

Linking dist/setup-wrapper\setup.exe ...
Configuring pango-0.12.5.0...
Building pango-0.12.5.0...
Preprocessing library pango-0.12.5.0...
[ 1 of 14] Compiling Graphics.Rendering.Pango.Types ( dist\build\Graphics\Rendering\Pango\Types.hs, dist\build\Graphics\Rendering\Pango\Types.o )

Graphics\Rendering\Pango\Types.chs:256:29:
    Not in scope: type constructor or class `CULLong'
    Perhaps you meant `CULong' (imported from Foreign.C.Types)

...

我已经尝试过努力搜索,但找不到与此相关的任何内容。帮助将不胜感激!

4

1 回答 1

2

cabal configure 和 cabal install 似乎都将 Types.chs 恢复为原始版本(缺少 CULLONG(..))。

看起来你想要

cabal build
cabal register --global

这让你从 Pango 失踪了 CULlong。至少这是进步:-P

将 CULlong 添加到 Pango 中,我们继续处理一个新的、更令人兴奋的错误:

GraphicsRenderingPongoStructs.hsc:87:21:
    Not in scope: type constructor or class 'Word9150716308491337760'

其次是更多类似的错误。有任何想法吗?

于 2014-01-23T13:07:34.513 回答