我挣扎安装GTK / gtk2hs对Linux Mint的17结合。
我第一次遇到这样的问题是,当我试图让在Haskell空地支持。
有同样的问题,但它纯粹是为了好玩,所以我顺其自然。
这一次,我试图用可视化的图形哈斯克尔图 。
在第四步发生的问题cabal install chart-cairo
我使用GHC版本7.6.3,小集团版本1.16.0.2,gtk2hs-编译工具版本0.12.4-2ubuntu1(从包管理器),gtk2hsC2hs版本0.13.6(这是其中间空地需要具有> = 0.13.8 ,但我无法找到一个更新的版本)
事情到目前为止,我已经试过:
从包管理器下载gtk2hs-编译工具后,我在命令行更新的阴谋和安装的工具
添加了 “$ HOME / .cabal / BIN” 到$ PATH的前(后正确安装了GTK)
CABAL安装图表开罗让我这个错误消息
Resolving dependencies... [1 of 2] Compiling SetupWrapper ( /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/SetupWrapper.hs, /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/SetupWrapper.o ) [2 of 2] Compiling Main ( /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/setup.hs, /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/Main.o ) Linking /tmp/cairo-0.13.0.2-19862/cairo-0.13.0.2/dist/setup/setup ... [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o ) Linking dist/setup-wrapper/setup ... Configuring cairo-0.13.0.2... Building cairo-0.13.0.2... Preprocessing library cairo-0.13.0.2... [ 1 of 18] Compiling Graphics.Rendering.Cairo.Matrix ( dist/build/Graphics/Rendering/Cairo/Matrix.hs, dist/build/Graphics/Rendering/Cairo/Matrix.o ) [ 2 of 18] Compiling Graphics.Rendering.Cairo.Types ( dist/build/Graphics/Rendering/Cairo/Types.hs, dist/build/Graphics/Rendering/Cairo/Types.o ) [ 3 of 18] Compiling Graphics.Rendering.Cairo.Internal.Utilities ( dist/build/Graphics/Rendering/Cairo/Internal/Utilities.hs, dist/build/Graphics/Rendering/Cairo/Internal/Utilities.o ) Graphics/Rendering/Cairo/Internal/Utilities.chs:24:42: Module `Data.Text.Foreign' does not export `withCStringLen' Failed to install cairo-0.13.0.2 cabal: Error: some packages failed to install: Chart-cairo-1.3.2 depends on cairo-0.13.0.2 which failed to install. cairo-0.13.0.2 failed during the building phase. The exception was: ExitFailure 1
pkg-config cairo --modversion
告诉我,我的版本1.13.1(其中较新,0.13.0.2?)