在 Windows 上安装 Haskell cairo
我正在尝试在 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可以在这个粘贴中看到,但真正的错误是这样的:
正在注册 cairo-0.12.0...
setup.exe: cairo-0.12.0: include-dirs: /usr/include/cairo 不存在或
不是目录(使用 --force 覆盖)
cairo-0.12.0: include-dirs: /usr/include/pixman-1 不存在或不是
目录(使用 --force 覆盖)
cairo-0.12.0: include-dirs: /usr/include/freetype2 不存在或不是
目录(使用 --force 覆盖)
cairo-0.12.0: include-dirs: /usr/include/libpng12 不存在或不是
目录(使用 --force 覆盖)
cabal:错误:某些软件包安装失败:
cairo-0.12.0 在构建阶段失败。例外是:
退出失败 1
我知道这些目录不存在,但我一生都无法弄清楚如何让它查看正确的目录。有谁知道我如何才能让这个安装工作?感谢您的任何和所有帮助。
I am trying to install cairo on Windows XP and this is the command that I am trying:
cabal install cairo --extra-include-dirs="C:\cygwin\usr\include" --extra-lib-dirs="C:\cygwin\lib" --extra-include-dirs="C:\cygwin\usr\include\cairo"
And the full output that I get can be seen at this pastie but the real error is this:
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
I know that those directories do not exist but I cannot figure out for the life of me how to get it to look at the right directories. Does anybody know how I can get this install to work? Thanks for any and all help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GHC 的默认发行版以本机(好吧,mingw)可执行文件为目标。这些不能与 Cygwin 库混合。
您必须使用 Cairo 的本机(非 Cygwin)安装。
The default distribution of GHC targets native (well, mingw) executables. These cannot be mixed with Cygwin libraries.
You'll have to use a native (non-Cygwin) installation of Cairo.