【发布时间】:2018-12-06 04:29:12
【问题描述】:
我一辈子都不知道如何在 Windows 上安装 cairo!
Haskell Charts 我需要它,但是当我按照设置说明开始运行时:
cabal install gtk
我收到此错误:
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.
如果我去cairo site,他们没有任何设置。只是一堆我不知道该怎么处理的dll(如何让Haskell看到它们)。
感谢任何帮助,因为我已经尝试安装该死的东西几个小时了!
【问题讨论】:
-
错误看起来很明显(在上面的第三行):“setup.exe: The program pkg-config version >=0.9.0 is required but it could not be found”。跨度>
-
我认为安装路线需要一个完整的建筑环境。 DLL 的使用听起来很简单“只需将 libcairo-2.dll、libpng13.dll 和 zlib1.dll 弹出到您的工作目录或系统路径中”(来自您链接的 cairo 页面)。