gpt4 book ai didi

haskell - 在 Windows 上安装 Haskell cairo

转载 作者:行者123 更新时间:2023-12-02 00:15:04 24 4
gpt4 key购买 nike

我正在尝试在 Windows XP 上安装 cairo,这是我正在尝试的命令:

cabal install cairo --extra-include-dirs="C:\cygwin\usr\include" --extra-lib-dirs="C:\cygwin\lib" --extra-include-dirs="C:\cygwin\usr\include\cairo"

我得到的完整输出 can be seen at this pastie但真正的错误是这样的:

Registering cairo-0.12.0...
setup.exe: cairo-0.12.0: include-dirs: /usr/include/cairo doesn't exist or
isn't a directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/pixman-1 doesn't exist or isn't a
directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/freetype2 doesn't exist or isn't a
directory (use --force to override)
cairo-0.12.0: include-dirs: /usr/include/libpng12 doesn't exist or isn't a
directory (use --force to override)
cabal: Error: some packages failed to install:
cairo-0.12.0 failed during the building phase. The exception was:
ExitFailure 1

我知道这些目录不存在,但我一生都无法弄清楚如何让它查看正确的目录。有谁知道我如何才能让这个安装工作​​?感谢您提供的所有帮助。

最佳答案

GHC 的默认发行版以 native (好吧,mingw)可执行文件为目标。这些不能与 Cygwin 库混合。

您必须使用 Cairo 的 native (非 Cygwin)安装。

关于haskell - 在 Windows 上安装 Haskell cairo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5010573/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com