Can't install cairo with cabal on Windows

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呢?


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).


你需要在双引号中加上“C: Program Files Gtk + bin”到PATH系统变量中,这样pkg-config对于windows才可见,你必须首先安装gtk +。

链接地址: http://www.djcxy.com/p/51542.html

上一篇: 如何使用DateTime.TryParse()作为非

下一篇: 在Windows上无法安装cairo