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).<br><br>Any ideas where to get pre-built glib and pkg-config both for Win32 and Mac OS X?<br><br>====== Problems on Mac OS X with gtk2hs-buildtools :<br>
cabal install gtk<br>Resolving dependencies...<br><br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs:25:0:<br>     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 &#39;cabal&#39; command)<br>
[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 )<br>
<br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs:201:69:<br>    Couldn&#39;t match expected type `PackageDBStack&#39;<br>           against inferred type `PackageDB&#39;<br>
    In the sixth argument of `registerPackage&#39;, namely `packageDb&#39;<br>    In the expression:<br>        registerPackage<br>          verbosity installedPkgInfo pkg lbi inplace packageDb<br>    In a case alternative:<br>
        _ | modeGenerateRegFile -&gt; die &quot;Generate Reg File not supported&quot;<br>          | modeGenerateRegScript -&gt; die &quot;Generate Reg Script not supported&quot;<br>          | otherwise<br>          -&gt; registerPackage<br>
               verbosity installedPkgInfo pkg lbi inplace packageDb<br><br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs:25:0:<br>     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 &#39;cabal&#39; command)<br>
[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 )<br>
<br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs:201:69:<br>    Couldn&#39;t match expected type `PackageDBStack&#39;<br>           against inferred type `PackageDB&#39;<br>
    In the sixth argument of `registerPackage&#39;, namely `packageDb&#39;<br>    In the expression:<br>        registerPackage<br>          verbosity installedPkgInfo pkg lbi inplace packageDb<br>    In a case alternative:<br>
        _ | modeGenerateRegFile -&gt; die &quot;Generate Reg File not supported&quot;<br>          | modeGenerateRegScript -&gt; die &quot;Generate Reg Script not supported&quot;<br>          | otherwise<br>          -&gt; registerPackage<br>
               verbosity installedPkgInfo pkg lbi inplace packageDb<br>cabal: Error: some packages failed to install:<br>cairo-0.12.0 failed during the configure step. The exception was:<br>ExitFailure 1<br>gio-0.12.0 depends on glib-0.12.0 which failed to install.<br>
glib-0.12.0 failed during the configure step. The exception was:<br>ExitFailure 1<br>gtk-0.12.0 depends on glib-0.12.0 which failed to install.<br>pango-0.12.0 depends on glib-0.12.0 which failed to install.<br>Resolving dependencies...<br>
<br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs:25:0:<br>     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 &#39;cabal&#39; command)<br>
[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 )<br>
<br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs:201:69:<br>    Couldn&#39;t match expected type `PackageDBStack&#39;<br>           against inferred type `PackageDB&#39;<br>
    In the sixth argument of `registerPackage&#39;, namely `packageDb&#39;<br>    In the expression:<br>        registerPackage<br>          verbosity installedPkgInfo pkg lbi inplace packageDb<br>    In a case alternative:<br>
        _ | modeGenerateRegFile -&gt; die &quot;Generate Reg File not supported&quot;<br>          | modeGenerateRegScript -&gt; die &quot;Generate Reg Script not supported&quot;<br>          | otherwise<br>          -&gt; registerPackage<br>
               verbosity installedPkgInfo pkg lbi inplace packageDb<br><br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs:25:0:<br>     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 &#39;cabal&#39; command)<br>
[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 )<br>
<br>/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs:201:69:<br>    Couldn&#39;t match expected type `PackageDBStack&#39;<br>           against inferred type `PackageDB&#39;<br>
    In the sixth argument of `registerPackage&#39;, namely `packageDb&#39;<br>    In the expression:<br>        registerPackage<br>          verbosity installedPkgInfo pkg lbi inplace packageDb<br>    In a case alternative:<br>
        _ | modeGenerateRegFile -&gt; die &quot;Generate Reg File not supported&quot;<br>          | modeGenerateRegScript -&gt; die &quot;Generate Reg Script not supported&quot;<br>          | otherwise<br>          -&gt; registerPackage<br>
               verbosity installedPkgInfo pkg lbi inplace packageDb<br>cabal: Error: some packages failed to install:<br>Chart-0.14 depends on glib-0.12.0 which failed to install.<br>cairo-0.12.0 failed during the configure step. The exception was:<br>
ExitFailure 1<br>gio-0.12.0 depends on glib-0.12.0 which failed to install.<br>glib-0.12.0 failed during the configure step. The exception was:<br>ExitFailure 1<br>gtk-0.12.0 depends on glib-0.12.0 which failed to install.<br>
pango-0.12.0 depends on glib-0.12.0 which failed to install.<br><br><br>====== Problems on Mac OS X with pkg-config<br><br>checking dynamic linker characteristics... darwin10.7.0 dyld<br>checking how to hardcode library paths into programs... immediate<br>
checking whether stripping libraries is possible... yes<br>checking if libtool supports shared libraries... yes<br>checking whether to build shared libraries... yes<br>checking whether to build static libraries... yes<br>
configure: creating ./<a href="http://config.lt">config.lt</a><br><a href="http://config.lt">config.lt</a>: creating libtool<br>checking for gcc... (cached) gcc<br>checking whether we are using the GNU C compiler... (cached) yes<br>
checking whether gcc accepts -g... (cached) yes<br>checking for gcc option to accept ISO C89... (cached) none needed<br>checking dependency style of gcc... (cached) gcc3<br>checking for default search path for .pc files... ${libdir}/pkgconfig:${datadir}/pkgconfig:/usr/lib/pkgconfig\<br>
:/usr/share/pkgconfig<br>checking for --with-system-include-path... /usr/include<br>checking for --with-system-library-path... /usr/lib<br>checking whether to list both direct and indirect dependencies... no<br>checking for Win32... no<br>
checking for pkg-config... no<br>./configure: line 13540: --exists: command not found<br>configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values<br><br>