如何在Windows上安装cairo [英] How to install cairo on Windows

查看:808
本文介绍了如何在Windows上安装cairo的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的生活,我无法弄清楚如何在Windows上安装cairo!



我需要它用于 Haskell图表,但是当我按照设置说明进行操作时:

  cabal install gtk 

我得到这个错误:

 链接dist / setup-wrapper \setup.exe ... 
配置glib-0.12.2 ...
setup.exe:程序pkg-配置版本> = 0.9.0是必需的,但它不能找到

cabal.exe:错误:某些程序包未能安装:
cairo-0.12.2在配置步骤中失败。例外情况是:
ExitFailure 1
gio-0.12.2取决于安装失败的glib-0.12.2。
glib-0.12.2在配置步骤失败。例外是:
ExitFailure 1
gtk-0.12.2取决于安装失败的glib-0.12.2。
pango-0.12.2取决于未能安装的glib-0.12.2。

如果我去开罗网站,他们没有任何设置。只是一堆dll,我不知道该怎么做(如何使Haskell看到他们)。

任何帮助表示赞赏,因为我一直在尝试安装这个该死的东西好几个小时!

解决方案

您需要下载可用的所有功能包 here 。您可以通过访问 http://www.gtk.org/ 并单击下载来发现此链接,然后是Windows(32位)。将其解压缩到不包含空格的目录,然后将该目录添加到PATH。在尝试 cabal install gtk 之前,您还需要 cabal install gtk2hs-buildtools



这些说明也可以在在gtk2hs网站上找到。


For the life of me I can't figure out how to install cairo on Windows!

I need it for Haskell Charts, but when I follow setup instructions and get to running:

cabal install gtk

I get this error:

Linking dist/setup-wrapper\setup.exe ...
Configuring glib-0.12.2...
setup.exe: The program pkg-config version >=0.9.0 is required but it could not
be found.
cabal.exe: Error: some packages failed to install:
cairo-0.12.2 failed during the configure step. The exception was:
ExitFailure 1
gio-0.12.2 depends on glib-0.12.2 which failed to install.
glib-0.12.2 failed during the configure step. The exception was:
ExitFailure 1
gtk-0.12.2 depends on glib-0.12.2 which failed to install.
pango-0.12.2 depends on glib-0.12.2 which failed to install.

If I go to cairo site, they don't have anywhere any kind of setup. Just a bunch of dlls that I don't know what to do with (how to make Haskell see them).

Any help appreciated, as I've been trying to install the damn thing for hours!

解决方案

You need to download the all-in-one bundle available here. You can discover this link yourself by visiting http://www.gtk.org/ and clicking "Download", then "Windows (32-bit)". Extract it to a directory that doesn't include spaces, and add that directory to your PATH. You will also need to cabal install gtk2hs-buildtools before you attempt to cabal install gtk.

These instructions can also be found on the gtk2hs website.

这篇关于如何在Windows上安装cairo的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆