我试图在Windows 8上安装Threadscope,以跟随Haskell-Book中的并行和并行编程。
我成功安装了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) ...
我试过努力寻找,但是我找不到任何与此有关的东西。 帮助将不胜感激!
cabal配置和cabal安装似乎还原Types.chs到原始版本(缺少CULLONG(..))。
它看起来像你想要的
cabal build cabal register --global
哪个让你到Cangong从Pango失踪。 至少是进步:–P
将CULLong加入到Pango中,我们继续讨论一个新的更令人兴奋的错误:
GraphicsRenderingPongoStructs.hsc:87:21: Not in scope: type constructor or class 'Word9150716308491337760'
跟着很多更类似的错误。 有任何想法吗?