【问题标题】:Can't install cairo with cabal on Windows - how to get pkg-config on win?无法在 Windows 上使用 cabal 安装 cairo - 如何在 win 上获取 pkg-config?
【发布时间】:2011-07-17 06:00:19
【问题描述】:
Configuring cairo-0.12.0...
setup.exe: The program pkg-config version >=0.9.0 is required but it could not
be found.
cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the configure step. The exception was:
ExitFailure 1

那么如何在 windows 上获取 pkg-config 或者如何安装 cairo 呢?

【问题讨论】:

    标签: haskell cairo cabal pkg-config


    【解决方案1】:

    您是否安装了 cairo 开发文件?回想一下,这与拥有一个 cairo dll 不同!请参阅其下载页面的 Windows 部分以获取 binaries。此外,您可以运行 cabal install -v 以获得更详细的错误信息(如果您仍然卡住,您应该发布)。

    【讨论】:

    • 我会尽量做到这一点,虽然这是 pkg-config 的麻烦。
    【解决方案2】:

    您需要在 PATH 系统变量中添加用双引号括起来的“C:\Program Files\Gtk+\bin”,以便 pkg-config 对 Windows 可见,当然您必须先安装 gtk+ ...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-09
      • 2013-02-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多