6
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 呢?

4

2 回答 2

3

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

于 2011-03-17T16:12:52.277 回答
1

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

于 2012-04-20T11:53:14.393 回答