[Haskell-beginners] trouble installing glib on windows 7

Michael Litchard michael at schmong.org
Fri Jan 21 00:27:17 CET 2011


I have Haskell Platform installed, trying to install glib. Here's what
happens.

$ cabal install glib
Resolving dependencies...
C:\Users\PERFOR~1\AppData\Local\Temp\glib-0.12.02360\glib-0.12.0\Gtk2HsSetup.hs:
25: 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
build
ing (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup      (
C:\Users\PERFOR~1\AppData\Local\Temp\glib-
0.12.02360\glib-0.12.0\Gtk2HsSetup.hs,
C:\Users\PERFOR~1\AppData\Local\Temp\glib
-0.12.02360\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main             (
C:\Users\PERFOR~1\AppData\Local\Temp\glib-
0.12.02360\glib-0.12.0\Setup.hs,
C:\Users\PERFOR~1\AppData\Local\Temp\glib-0.12.
02360\glib-0.12.0\dist\setup\Main.o )
Linking
C:\Users\PERFOR~1\AppData\Local\Temp\glib-0.12.02360\glib-0.12.0\dist\se
tup\setup.exe ...
Configuring glib-0.12.0...
setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
cabal.exe: Error: some packages failed to install:
glib-0.12.0 failed during the configure step. The exception was:
ExitFailure 1



Okay, so all I need to do is install pkg-config

$ cabal install pkg-config
cabal.exe: There is no package named pkg-config. Perhaps you need to run
'cabal update' first?

hmm, so how do I install pkg-config?
cabal update didn't help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110120/68ab2b0a/attachment.htm>


More information about the Beginners mailing list