gpt4 book ai didi

haskell - 用 Darcs 安装 gtk2hs

转载 作者:行者123 更新时间:2023-12-01 02:22:08 26 4
gpt4 key购买 nike

我有一些现有代码,如果没有 gtk2hs,我将无法运行。但我无法安装它。我之前尝试过使用 cabal,但发现现在正确的解决方案是从 darcs 构建。所以我这样做:

darcs get --lazy http://code.haskell.org/gtk2hs
cd gtk2hs
export PATH=$HOME/Library/Haskell/bin:$PATH
sh bootstrap.sh

得到这个:
Resolving dependencies...
Configuring gio-0.12.4.1...
setup: The pkg-config package gio-2.0 version >=2.16.4 is required but it
could not be found.
Resolving dependencies...
Configuring cairo-0.12.4.1...
setup: The pkg-config package cairo version >=1.2.0 is required but it could
not be found.
Resolving dependencies...
Configuring pango-0.12.4.1...
setup: At least the following dependencies are missing:
cairo >=0.12.0 && <0.13
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Configuring gtk-0.12.4.1...
setup: At least the following dependencies are missing:
cairo >=0.12.0 && <0.13, pango >=0.12.0 && <0.13
setup: Run the 'configure' command first.
setup: Run the 'configure' command first.
setup: Run the 'configure' command first.
Package has never been configured. Configuring with default flags. If this
fails, please run configure manually.
Resolving dependencies...
Configuring gtk3-0.12.4.1...
setup: At least the following dependencies are missing:
cairo >=0.12.0 && <0.13, pango >=0.12.0 && <0.13
setup: Run the 'configure' command first.
setup: Run the 'configure' command first.
setup: Run the 'configure' command first.

我在 osx 上使用 cabal 和 darcs 的最新版本。

最佳答案

在将 Haskell 绑定(bind)安装到它们之前,您必须安装 gtk C 库。访问 the installation instructions如果您需要有关如何执行此操作的说明,请查看适用于您的操作系统的部分。

关于haskell - 用 Darcs 安装 gtk2hs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19653519/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com