Trying to install the same stuff on Mac OS X 10.6.7 I get problems both with gtk2hs-buildtools and pkg-config, (see below).
Any ideas where to get pre-built glib and pkg-config both for Win32 and Mac OS X? ====== Problems on Mac OS X with gtk2hs-buildtools : cabal install gtk Resolving dependencies... /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs:25:0: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/dist/setup/Gtk2HsSetup.o ) /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs:201:69: Couldn't match expected type `PackageDBStack' against inferred type `PackageDB' In the sixth argument of `registerPackage', namely `packageDb' In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb In a case alternative: _ | modeGenerateRegFile -> die "Generate Reg File not supported" | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs:25:0: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/dist/setup/Gtk2HsSetup.o ) /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs:201:69: Couldn't match expected type `PackageDBStack' against inferred type `PackageDB' In the sixth argument of `registerPackage', namely `packageDb' In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb In a case alternative: _ | modeGenerateRegFile -> die "Generate Reg File not supported" | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb cabal: Error: some packages failed to install: cairo-0.12.0 failed during the configure step. The exception was: ExitFailure 1 gio-0.12.0 depends on glib-0.12.0 which failed to install. glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.12.0 depends on glib-0.12.0 which failed to install. pango-0.12.0 depends on glib-0.12.0 which failed to install. Resolving dependencies... /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs:25:0: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/dist/setup/Gtk2HsSetup.o ) /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs:201:69: Couldn't match expected type `PackageDBStack' against inferred type `PackageDB' In the sixth argument of `registerPackage', namely `packageDb' In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb In a case alternative: _ | modeGenerateRegFile -> die "Generate Reg File not supported" | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs:25:0: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/dist/setup/Gtk2HsSetup.o ) /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs:201:69: Couldn't match expected type `PackageDBStack' against inferred type `PackageDB' In the sixth argument of `registerPackage', namely `packageDb' In the expression: registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb In a case alternative: _ | modeGenerateRegFile -> die "Generate Reg File not supported" | modeGenerateRegScript -> die "Generate Reg Script not supported" | otherwise -> registerPackage verbosity installedPkgInfo pkg lbi inplace packageDb cabal: Error: some packages failed to install: Chart-0.14 depends on glib-0.12.0 which failed to install. cairo-0.12.0 failed during the configure step. The exception was: ExitFailure 1 gio-0.12.0 depends on glib-0.12.0 which failed to install. glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.12.0 depends on glib-0.12.0 which failed to install. pango-0.12.0 depends on glib-0.12.0 which failed to install. ====== Problems on Mac OS X with pkg-config checking dynamic linker characteristics... darwin10.7.0 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating ./config.lt config.lt: creating libtool checking for gcc... (cached) gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking dependency style of gcc... (cached) gcc3 checking for default search path for .pc files... ${libdir}/pkgconfig:${datadir}/pkgconfig:/usr/lib/pkgconfig\ :/usr/share/pkgconfig checking for --with-system-include-path... /usr/include checking for --with-system-library-path... /usr/lib checking whether to list both direct and indirect dependencies... no checking for Win32... no checking for pkg-config... no ./configure: line 13540: --exists: command not found configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe