无法在 Windows 上使用 cabal 安装 cairo - 如何在 win 上获取 pkg-config?
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 呢?
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
so how can I get pkg-config on windows or how to install cairo then ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你需要将双引号括起来的“C:\Program Files\Gtk+\bin”添加到 PATH 系统变量中,以便 pkg-config 对 Windows 可见,当然你必须先安装 gtk+ ...
you need to add "C:\Program Files\Gtk+\bin" enclosed in double quotes to PATH system variable so that pkg-config becomes visible to windows, you have to have the gtk+ installed first of course ...
你安装了 cairo 开发文件吗?回想一下,这与拥有 cairo dll 不同!请参阅下载页面的 Windows 部分的二进制文件。另外,您可以运行
cabal install -v
以获得更详细的错误信息(如果您仍然遇到困难,您应该发布该错误)。Do you have the cairo development files installed? Recall this isn't the same as having a cairo dll! See the Windows section of their download page for binaries. Also, you can run
cabal install -v
for more verbosity in the error (which you should post if you're still stuck).