【发布时间】:2013-11-27 13:46:15
【问题描述】:
我在运行 os x 10.9 的 mac 上使用 cabal 为 ghc 安装 cairo 后端时遇到了一些问题。 pkg-config 中似乎缺少 cairo-pdf 包。我曾尝试使用自制软件重新安装 pkg-config,但它似乎并没有改变任何东西。 cabal 的输出如下:
andylawrence$ cabal install Cairo
Resolving dependencies...
[1 of 2] Compiling SetupWrapper ( /var/folders/cb/1j0fjp2n4x12b8tfg2cz64vm0000gn/T/cairo-0.12.4-98407/cairo-0.12.4/SetupWrapper.hs, /var/folders/cb/1j0fjp2n4x12b8tfg2cz64vm0000gn/T/cairo-0.12.4-98407/cairo-0.12.4/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main ( /var/folders/cb/1j0fjp2n4x12b8tfg2cz64vm0000gn/T/cairo-0.12.4-98407/cairo-0.12.4/Setup.hs, /var/folders/cb/1j0fjp2n4x12b8tfg2cz64vm0000gn/T/cairo-0.12.4-98407/cairo-0.12.4/dist/setup/Main.o )
Linking /var/folders/cb/1j0fjp2n4x12b8tfg2cz64vm0000gn/T/cairo-0.12.4-98407/cairo-0.12.4/dist/setup/setup ...
Gtk2HsSetup.hs:107:59:
warning: missing terminating ' character [-Winvalid-pp-token]
-- If there are several .dll files matching the one we're after then we
^
Gtk2HsSetup.hs:145:50:
warning: missing terminating ' character [-Winvalid-pp-token]
-> RegisterFlags -- ^Install in the user's database?; verbose
^
Gtk2HsSetup.hs:210:41:
warning: missing terminating ' character [-Winvalid-pp-token]
-- have the header file name if we don't have the precompiled header yet
^
Gtk2HsSetup.hs:249:40:
warning: missing terminating ' character [-Winvalid-pp-token]
mFiles <- mapM (findFileWithExtension' ["chi"] [buildDir lbi] . toFilePath)
^
Gtk2HsSetup.hs:293:28:
warning: missing terminating ' character [-Winvalid-pp-token]
, let name' = filter isAlpha (display name)
^
Gtk2HsSetup.hs:294:31:
warning: missing terminating ' character [-Winvalid-pp-token]
, tag <- name'
^
Gtk2HsSetup.hs:295:33:
warning: missing terminating ' character [-Winvalid-pp-token]
: [ name' ++ "-" ++ show major ++ "." ++ show digit
^
7 warnings generated.
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main ( SetupMain.hs, dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring cairo-0.12.4...
/var/folders/cb/1j0fjp2n4x12b8tfg2cz64vm0000gn/T/98471.c:1:12:
warning: control reaches end of non-void function [-Wreturn-type]
int foo() {}
^
1 warning generated.
setup: The pkg-config package cairo-pdf is required but it could not be found.
Failed to install cairo-0.12.4
cabal: Error: some packages failed to install:
cairo-0.12.4 failed during the configure step. The exception was:
ExitFailure 1
任何帮助将不胜感激。
【问题讨论】:
标签: macos haskell ghc cabal cairo