
...I'm going to try to install gtk2hs again... ...I'll be using the link http://www.haskell.org/haskellwiki/Gtk2Hs ...I'd appreciate any help...

On Thu, Feb 3, 2011 at 4:32 PM, Patrick Lynch
...I'm going to try to install gtk2hs again... ...I'll be using the link http://www.haskell.org/haskellwiki/Gtk2Hs ...I'd appreciate any help...
There's a version on Hackage right now which should work well with just cabal-install. You'll first need to install the gtk2hs-buildtools. Depending on your OS, you'll probably need to install a gtk development package. -- Jeff Wheeler Undergraduate, Electrical Engineering University of Illinois at Urbana-Champaign

Hi Patrick,
I used the same link to install gtk2hs on Windows XP with Haskell Platform
2010.2.0 about 3 days ago. I'm a beginner as well. I had a number of
problems. In the end, I managed to install version 0.11 with some
extra-work:
- I added HaskellPlatform/2010.2.0.0/mingw/bin to the PATH (because there is
my only current gcc.exe)
- ugly: I copied Gtk+/include/glib-2.0 to a temp folder and copied this
again *into* Gtk+/include/glib-2.0 (the output of pkg-config looked
alright...)
- I repeated the previous steps for other include folders as well
Note: in order to install a specific version of a package you can e.g.
cabal install gtk2hs-buildtools-0.11.2
Installation of 0.12. failed with the following error:
[ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor (
dist\build\System\GIO\Volumes\VolumeMonitor.hs,
dist\build\System\GIO\Volumes\VolumeMonitor.o )
System\GIO\Volumes\VolumeMonitor.chs:56:4:
Not in scope: `vmDriveStopButton'
Regards,
Tim
2011/2/3 Patrick Lynch
...I'm going to try to install gtk2hs again... ...I'll be using the link http://www.haskell.org/haskellwiki/Gtk2Hs ...I'd appreciate any help...
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Good moring,
...I know how hard it is...
...this will be my second attempt on a Windows Vista PC...I also have to install it on a Mac...
...I'll try it again this afternoon...
Good luck to both of us
It really shouldn't be this hard...bummer...
----- Original Message -----
From: Tim Baumgartner
To: beginners@haskell.org
Cc: Patrick Lynch
Sent: Friday, February 04, 2011 2:13 PM
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
Hi Patrick,
I used the same link to install gtk2hs on Windows XP with Haskell Platform 2010.2.0 about 3 days ago. I'm a beginner as well. I had a number of problems. In the end, I managed to install version 0.11 with some extra-work:
- I added HaskellPlatform/2010.2.0.0/mingw/bin to the PATH (because there is my only current gcc.exe)
- ugly: I copied Gtk+/include/glib-2.0 to a temp folder and copied this again *into* Gtk+/include/glib-2.0 (the output of pkg-config looked alright...)
- I repeated the previous steps for other include folders as well
Note: in order to install a specific version of a package you can e.g.
cabal install gtk2hs-buildtools-0.11.2
Installation of 0.12. failed with the following error:
[ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor ( dist\build\System\GIO\Volumes\VolumeMonitor.hs, dist\build\System\GIO\Volumes\VolumeMonitor.o )
System\GIO\Volumes\VolumeMonitor.chs:56:4:
Not in scope: `vmDriveStopButton'
Regards,
Tim
2011/2/3 Patrick Lynch

This was hard for me on Windows too which is why I documented what I
did on the wiki. Please do let me know if the instructions are wrong.
@Tim : I found it best not to use the mingw binary that ships with
Haskell Platform but install it from scratch.
-deech
On Fri, Feb 4, 2011 at 1:23 PM, Patrick Lynch
Good moring, ...I know how hard it is... ...this will be my second attempt on a Windows Vista PC...I also have to install it on a Mac... ...I'll try it again this afternoon... Good luck to both of us
It really shouldn't be this hard...bummer...
----- Original Message ----- From: Tim Baumgartner To: beginners@haskell.org Cc: Patrick Lynch Sent: Friday, February 04, 2011 2:13 PM Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit] Hi Patrick,
I used the same link to install gtk2hs on Windows XP with Haskell Platform 2010.2.0 about 3 days ago. I'm a beginner as well. I had a number of problems. In the end, I managed to install version 0.11 with some extra-work: - I added HaskellPlatform/2010.2.0.0/mingw/bin to the PATH (because there is my only current gcc.exe) - ugly: I copied Gtk+/include/glib-2.0 to a temp folder and copied this again *into* Gtk+/include/glib-2.0 (the output of pkg-config looked alright...) - I repeated the previous steps for other include folders as well
Note: in order to install a specific version of a package you can e.g. cabal install gtk2hs-buildtools-0.11.2
Installation of 0.12. failed with the following error: [ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor ( dist\build\System\GIO\Volumes\VolumeMonitor.hs, dist\build\System\GIO\Volumes\VolumeMonitor.o )
System\GIO\Volumes\VolumeMonitor.chs:56:4: Not in scope: `vmDriveStopButton'
Regards, Tim
2011/2/3 Patrick Lynch
...I'm going to try to install gtk2hs again... ...I'll be using the link http://www.haskell.org/haskellwiki/Gtk2Hs ...I'd appreciate any help...
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

@Patrick the missing libraries problem seems to be something different. I
didn't run into this one.
Good luck!
2011/2/5 aditya siram
This was hard for me on Windows too which is why I documented what I did on the wiki. Please do let me know if the instructions are wrong.
@Tim : I found it best not to use the mingw binary that ships with Haskell Platform but install it from scratch.
-deech
Ok, thanks deech, I will install a brand new mingw next time anything goes wrong. Tim

Thanks for your support...
I'd appreciate any help - I don't know what else to do with this...
This is what I did so far:
1. I followed your wiki
2. I opened Command window and entered the command: cabal install gtk
3. It returned the error messages:
* Missing C libraries: z, cairo
* Missing C libraries: gobject-2.0, glib-2.0, intl
4. I then ran the command: cabal install
gtk --extra-include-dirs="c:/Program
Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include"
This returned the same error messages as indicated in step 3 above.
5. I then ran the command: cabal install
gtk --extra-include-dirs="c:/Program Files
(x86)/Gtk+/include" --extra-lib-dirs="c:/Program Files (x86)/Gtk+/include"
This also returns the Step 3 errors...
6. I then ran the command: cabal install
gtk --extra-include-dirs="c:/Program
Files/Gtk+/include" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
7. I then ran the command: cabal install
gtk --extra-include-dirs="c:\Program Files
(x86)\Gtk+\lib" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
These also return the Step 3 errors...
Note: I can not find library 'z'.
Note: the Cairo directory is in the following:
c:\Program Files\Gtk+\include\cairo
c:\Program Files (x86)\Gtk+\include\cairo
Note: gobject-2.0 library could not be found - but there is a file named
c:\Program Files (x86)\Gtk+\lib\glib-2.0.lib" [it is also on Program Files
(x86)].
Just for the heck of it I ran the following command, but no luck with
it:
cabal install gtk --extra-include-dirs="c:/Program
Files/Gtk+/include" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
cabal install gtk --extra-include-dirs="c:\Program Files
(x86)\Gtk+\lib" --extra-lib-dirs="c:\Program Files (x86)\Gtk+\lib"
Note: glib-2.0 is in the following:
c:\Program Files\Gtk+\lib\glib-2.0
c:\Program Files (x86)\Gtk+\lib\glib-2.0
Note: intl is in the following:
c:\Program Files\Gtk+\lib\intl
c:\Program Files (x86)\Gtk+\lib\intl
Details are listed below...
---------------------------------------------------------------------------------------------------------------------
This is where I am now - I followed your wiki:
...it can't find the folders: Z, CAIRO, GOBJECT-2.0, GLIB-2.0, INTL.
...however, they are all, with the exception of Z and possibly GOBJECT-2.0
[there is no folder for this but there is a library file for it], in Program
Files and surprisingly also in Program Files (X86)...
...i'm a bit confused about my %PATH% setting, it is different in the
Advanced system settings from what is displayed by echo %PATH% in the
Command window - see 2nd following...
...i ran the command: cabal install gtk. see following for results...
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Gtk2HsSetup.hs:25:
warning: #warning Setup.hs is guessing the version of Cabal. If compilation
of Se
tup.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 (
C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Gtk2HsSetup.hs,
C:\Users\User\AppData\Local\Temp\cairo-0.12.02
164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main (
C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Setup.hs,
C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\ca
iro-0.12.0\dist\setup\Main.o )
Linking
C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\dist\setup\setup.exe
...
Configuring cairo-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Gtk2HsSetup.hs:25:
warning: #warning Setup.hs is guessing the version of Cabal. If compilation
of Setu
p.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 (
C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Gtk2HsSetup.hs,
C:\Users\User\AppData\Local\Temp\glib-0.12.02164
\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main (
C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Setup.hs,
C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-
0.12.0\dist\setup\Main.o )
Linking
C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\dist\setup\setup.exe
...
Configuring glib-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: gobject-2.0, glib-2.0, intl
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
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.
C:\Users\User>
---------------------------------------------------------------------------
--My %PATH% at the command window
C:\Program Files (x86)\Haskell\bin;
C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin;
C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin;
C:\Windows\system32;
C:\Windows;C:\Windows\System32\Wbem;
C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;
C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;
C:\Users\User\AppData\Roaming\cabal\bin;C:\Program Files\Gtk+\bin;
C:\Users\User;C:\Program Files (x86)\Gtk+\bin;
c:\Program Files (x86)\Gtk+\share\gettext
--My %PATH% at the Advanced system settings
C:\Users\User\AppData\Roaming\cabal\bin;
C:\Program Files\Gtk+\bin;
C:\Users\User;
C:\Program Files (x86)\Gtk+\bin;
c:\Program Files (x86)\Gtk+\share\gettext
----------------------------------------------------------------------------
.To the PKG_CONFIG_PATH environment variable add the 'pkgconfig' directory.
The default path should be "
C:\Program Files\Gtk+\lib\pkgconfig
.To the INCLUDE environment variable add the 'libglade-2.0' directory.The
default path should be "
C:\Program Files\Gtk+\include\libglade-2.0
C:\Program Files\Gtk+\lib\pkgconfig;
C:\Program Files\Gtk+\lib\pkgconfig\include;
c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig
----- Original Message -----
From: "aditya siram"
Good moring, ...I know how hard it is... ...this will be my second attempt on a Windows Vista PC...I also have to install it on a Mac... ...I'll try it again this afternoon... Good luck to both of us
It really shouldn't be this hard...bummer...
----- Original Message ----- From: Tim Baumgartner To: beginners@haskell.org Cc: Patrick Lynch Sent: Friday, February 04, 2011 2:13 PM Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit] Hi Patrick,
I used the same link to install gtk2hs on Windows XP with Haskell Platform 2010.2.0 about 3 days ago. I'm a beginner as well. I had a number of problems. In the end, I managed to install version 0.11 with some extra-work: - I added HaskellPlatform/2010.2.0.0/mingw/bin to the PATH (because there is my only current gcc.exe) - ugly: I copied Gtk+/include/glib-2.0 to a temp folder and copied this again *into* Gtk+/include/glib-2.0 (the output of pkg-config looked alright...) - I repeated the previous steps for other include folders as well
Note: in order to install a specific version of a package you can e.g. cabal install gtk2hs-buildtools-0.11.2
Installation of 0.12. failed with the following error: [ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor ( dist\build\System\GIO\Volumes\VolumeMonitor.hs, dist\build\System\GIO\Volumes\VolumeMonitor.o )
System\GIO\Volumes\VolumeMonitor.chs:56:4: Not in scope: `vmDriveStopButton'
Regards, Tim
2011/2/3 Patrick Lynch
...I'm going to try to install gtk2hs again... ...I'll be using the link http://www.haskell.org/haskellwiki/Gtk2Hs ...I'd appreciate any help...
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages:
* Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtoolsinstalled successfully? If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of echo %LIB% at the prompt? The ouput of pkg-config --modversion gtk+-2.0 might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user. Good luck Tim

Good afternoon: Step 1 ['cabal install gtk2hs-buildtools'] ran successfully. This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib This is whatpkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2 Thanks again On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
mailto:kmandpjlynch@verizon.net> This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages:
* Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of pkg-config --modversion gtk+-2.0 might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim

Why do you have Gtk+ in two folders? Did you somehow install it twice?
Also what's in the following environment variable:
PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

For the environment vars I'd like to see what the DOS prompt thinks
they are, so can you give me the output of, echo %PATH%, echo
%INCLUDE% and echo %PKG_CONFIG% ?
-deech
On Sat, Feb 5, 2011 at 11:31 AM, aditya siram
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Good afternoon, In the course of doing this, I probably did the installation twice, meo culpa. As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% /[presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]/: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above. Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

The paths look ok from here. Please uninstall both your Gtk+
installations and reinstall just one. Then make sure your INCLUDE and
PKG_CONFIG_PATH refer to it. It's possible you're referring to the
'bin' of one while trying to use the 'include' and 'pkgconfig' of the
other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: _*setup.exe: pkg-config version >=0.9.0 is required but it could not be found.*_ Please see following. Good weekend C:\Users\User>cabal install gtk Resolving dependencies... C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ...Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found. C:\Users\User\AppData\Local\Temp\glib-0.12.03104\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 building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...Configuring glib-0.12.0...setup.exe: 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 1gio-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. On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi Patrick,
pkg-config.exe should be in C:\Program Files\Gtk+\bin - so make sure you
have it in your path. It's version should be 0.23, but you can check with
pkg-config --version
Regards
Tim
2011/2/5 Patrick Lynch
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: *setup.exe: pkg-config version >=0.9.0 is required but it could not be found.* Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ... &nbs p; &nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &nbs p; 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 (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o )   ; [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )   ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...   ; Configuring glib-0.12.0...setup.exe: 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
gio-0.12.0 depends on glib-0.12.0 which failed to install. &nbs p;   ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 & nbsp; & nbsp; 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. On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners

I hate to tell you this, but gtk* is being installed in Program Files (x86) and not in Program Files... I'll try it again... On 2/5/2011 2:09 PM, Patrick Lynch wrote:
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: _*setup.exe: pkg-config version >=0.9.0 is required but it could not be found.*_ Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ...&nbs p; &nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &nbs p; 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(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o ) ; [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o ) ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ... ; Configuring glib-0.12.0...setup.exe: 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 1gio-0.12.0 depends on glib-0.12.0 which failed to install.&nbs p;
; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 & nbsp; & nbsp; 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.
On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

I reinstalled Gtk* but switched the folder from Program Files (x86) to Program Files... I changed all my environment variables to remove Program Files (x86)... Unfortunately, it once again doesn't see the five original directories...see following: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl Got me...it seems like the cabal system should know where everything is going to be installed - then it should only have a dependency on the environment variables if it can't find its files in the default locations... Do you think it would be worthwhile trying an installation using Program Files (x86) rather than Program Files [remember, on my PC , when doing the gtk installation it wants to do it in Program Files (x86)] Good weekend On 2/5/2011 2:38 PM, Patrick Lynch wrote:
I hate to tell you this, but gtk* is being installed in Program Files (x86) and not in Program Files... I'll try it again...
On 2/5/2011 2:09 PM, Patrick Lynch wrote:
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: _*setup.exe: pkg-config version >=0.9.0 is required but it could not be found.*_ Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ...&a mp;nbs p; &nb sp;&nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &a mp;nbs p; 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(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o ) ; ; [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )&nb sp; ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...&nb sp; ; Configuring glib-0.12.0...setup.exe: 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 ; &nbs p; gio-0.12.0 depends on glib-0.12.0 which failed to install.&a mp;nbs p; &nb sp; ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1
;& nbsp; & nbsp; gtk-0.12.0 depends on glib-0.12.0 which failed to install. ;
;&nbs p; pango-0.12.0 depends on glib-0.12.0 which failed to install.
On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

FYI: if you do the gtk install, using the default Program Files (x86), it will actually install in Program Files - curiouser and curiouser.. On 2/5/2011 3:05 PM, Patrick Lynch wrote:
I reinstalled Gtk* but switched the folder from Program Files (x86) to Program Files...
I changed all my environment variables to remove Program Files (x86)...
Unfortunately, it once again doesn't see the five original directories...see following: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl
Got me...it seems like the cabal system should know where everything is going to be installed - then it should only have a dependency on the environment variables if it can't find its files in the default locations...
Do you think it would be worthwhile trying an installation using Program Files (x86) rather than Program Files [remember, on my PC , when doing the gtk installation it wants to do it in Program Files (x86)]
Good weekend
On 2/5/2011 2:38 PM, Patrick Lynch wrote:
I hate to tell you this, but gtk* is being installed in Program Files (x86) and not in Program Files... I'll try it again...
On 2/5/2011 2:09 PM, Patrick Lynch wrote:
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: _*setup.exe: pkg-config version >=0.9.0 is required but it could not be found.*_ Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ...&a mp;nbs p; &n bsp;&nb sp;&nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &a mp;nbs p; 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(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o ) &nb sp; ; ; [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )& amp;nb sp; ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...& amp;nb sp; ; Configuring glib-0.12.0...setup.exe: 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&nb sp; ; &nbs p; gio-0.12.0 depends on glib-0.12.0 which failed to install.&a mp;nbs p; & amp;nb sp; ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 &nb sp; ;& nbsp; &n bsp; & nbsp; gtk-0.12.0 depends on glib-0.12.0 which failed to install.& nbsp; ; &nbs p; ;&nbs p; pango-0.12.0 depends on glib-0.12.0 which failed to install.
On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi Patrick,
2011/2/5 Patrick Lynch
I reinstalled Gtk* but switched the folder from Program Files (x86) to Program Files...
I'm sorry, you misunderstood me. Please make sure you read my second last post about "Program Files" on Windows 7. I *think* it's no good idea to have both "Program Files" and "Program Files (x86)" folders. Type dir c:\ in the console. Then you see the *real* folders, unsugared. In Windows explorer or other dialogs, they are sugared, i.e. "Program Files (x86)" may appear as "Program Files". When you refer to them in Environment variables, I *guess* you have to use the *real* names again, like printed in the console. But I currently cannot verify this because at home I have only Win XP. But a little experiment should help you there. When I wrote "pkg-config.exe should be in C:\Program Files\Gtk+\bin" in my last post, I meant the bin folder of the Gtk+ installation, no matter where it is in your installation. Regards Tim
I changed all my environment variables to remove Program Files (x86)...
Unfortunately, it once again doesn't see the five original directories...see following:
* Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl
Got me...it seems like the cabal system should know where everything is going to be installed - then it should only have a dependency on the environment variables if it can't find its files in the default locations...
Do you think it would be worthwhile trying an installation using Program Files (x86) rather than Program Files [remember, on my PC , when doing the gtk installation it wants to do it in Program Files (x86)]
Good weekend
On 2/5/2011 2:38 PM, Patrick Lynch wrote:
I hate to tell you this, but gtk* is being installed in Program Files (x86) and not in Program Files... I'll try it again...
On 2/5/2011 2:09 PM, Patrick Lynch wrote:
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: *setup.exe: pkg-config version >=0.9.0 is required but it could not be found.* Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ... &a mp;nbs p; &n bsp;&nb sp;&nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &a mp;nbs p; 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 (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o ) &nb sp; ; ; [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o ) & amp;nb sp; ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ... & amp;nb sp; ; Configuring glib-0.12.0...setup.exe: 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 &nb sp; ; &nbs p; gio-0.12.0 depends on glib-0.12.0 which failed to install. &a mp;nbs p; & amp;nb sp; ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 &nb sp; ;& nbsp; &n bsp; & nbsp; gtk-0.12.0 depends on glib-0.12.0 which failed to install. & nbsp; ; &nbs p; ;&nbs p; pango-0.12.0 depends on glib-0.12.0 which failed to install. On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing listBeginners@haskell.orghttp://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

UNCLE! I give up... I did the dir c:\ and it shows both Program Files and Program Files (86)...I thought they were necessary to separate 32 bit and 64 bit apps... I looked at MINQ and ran into a Polish Not Found Page and was completely dumbfounded by the instructions there... I've got my database stuff working and I must go thru Monads, to see if I can understand them... So, I'm going to leave gtk ... perhaps I can write something in C# or VB.Net and do the TCL and then use FFI to connect to Haskell... I'll also take a look at F# and see if it works with Visual Studio... Thanks for your help and I'm sorry I couldn't get gtk to go...other 'newbies' have got it to work, so it must be me... Ciao On 2/5/2011 4:07 PM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
mailto:kmandpjlynch@verizon.net> I reinstalled Gtk* but switched the folder from Program Files (x86) to Program Files...
I'm sorry, you misunderstood me. Please make sure you read my second last post about "Program Files" on Windows 7. I *think* it's no good idea to have both "Program Files" and "Program Files (x86)" folders. Type
dir c:\
in the console. Then you see the *real* folders, unsugared. In Windows explorer or other dialogs, they are sugared, i.e. "Program Files (x86)" may appear as "Program Files". When you refer to them in Environment variables, I *guess* you have to use the *real* names again, like printed in the console. But I currently cannot verify this because at home I have only Win XP. But a little experiment should help you there.
When I wrote "pkg-config.exe should be in C:\Program Files\Gtk+\bin" in my last post, I meant the bin folder of the Gtk+ installation, no matter where it is in your installation.
Regards Tim
I changed all my environment variables to remove Program Files (x86)...
Unfortunately, it once again doesn't see the five original directories...see following:
* Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl
Got me...it seems like the cabal system should know where everything is going to be installed - then it should only have a dependency on the environment variables if it can't find its files in the default locations...
Do you think it would be worthwhile trying an installation using Program Files (x86) rather than Program Files [remember, on my PC , when doing the gtk installation it wants to do it in Program Files (x86)]
Good weekend
On 2/5/2011 2:38 PM, Patrick Lynch wrote:
I hate to tell you this, but gtk* is being installed in Program Files (x86) and not in Program Files... I'll try it again...
On 2/5/2011 2:09 PM, Patrick Lynch wrote:
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: _*setup.exe: pkg-config version >=0.9.0 is required but it could not be found.*_ Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ...&a mp;nbs p; &n bsp;&nb sp;&nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &a mp;nbs p; 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(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o ) &nb sp; ; ; [2 of 2] Compiling Main(C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )& amp;nb sp; ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...& amp;nb sp; ; Configuring glib-0.12.0...setup.exe: 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&nb sp; ; &nbs p; gio-0.12.0 depends on glib-0.12.0 which failed to install.&a mp;nbs p; & amp;nb sp; ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 &nb sp; ;& nbsp; &n bsp; & nbsp; gtk-0.12.0 depends on glib-0.12.0 which failed to install.& nbsp; ; &nbs p; ;&nbs p; pango-0.12.0 depends on glib-0.12.0 which failed to install.
On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
mailto:kmandpjlynch@verizon.net wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
mailto:kmandpjlynch@verizon.net wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
mailto:kmandpjlynch@verizon.net This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org mailto:Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org mailto:Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org mailto:Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Hi Patrick,
2011/2/5 Patrick Lynch
I did the dir c:\ and it shows both Program Files and Program Files (86)
As I expected. Please have a look inside them. The one ending (x86) is definitely necessary to be there but I can imagine that the other one's existence is a simple accident... If so, then you should remove it. Perhaps you have installed a few apps into it. I suggest you consider to reinstall them to the other folder in order to avoid even more confusion later on. Good luck! Tim

On Sat, Feb 5, 2011 at 10:33 PM, Tim Baumgartner
Hi Patrick,
2011/2/5 Patrick Lynch
I did the dir c:\ and it shows both Program Files and Program Files (86)
As I expected. Please have a look inside them. The one ending (x86) is definitely necessary to be there but I can imagine that the other one's existence is a simple accident... If so, then you should remove it. Perhaps you have installed a few apps into it. I suggest you consider to reinstall them to the other folder in order to avoid even more confusion later on.
Maybe you shouldn't be so hasty, from what I can see on my Windows 7, both Program Files and its (x86) variant are real folders, one is for 64-bits applications while the other contains all the applications that are still in 32 bits, I don't think it's a good idea to just delete one... -- Jedaï

On Sun, Feb 6, 2011 at 6:39 AM, Chaddaï Fouché
On Sat, Feb 5, 2011 at 10:33 PM, Tim Baumgartner
wrote: Hi Patrick,
2011/2/5 Patrick Lynch
I did the dir c:\ and it shows both Program Files and Program Files (86)
As I expected. Please have a look inside them. The one ending (x86) is definitely necessary to be there but I can imagine that the other one's existence is a simple accident... If so, then you should remove it. Perhaps you have installed a few apps into it. I suggest you consider to reinstall them to the other folder in order to avoid even more confusion later on.
Maybe you shouldn't be so hasty, from what I can see on my Windows 7, both Program Files and its (x86) variant are real folders, one is for 64-bits applications while the other contains all the applications that are still in 32 bits, I don't think it's a good idea to just delete one...
Indeed, having both folders is normal for Windows 7, 64-bit systems. The only thing that is a bit confusing at times is that 32-bit processes will 'see' "Program Files (x86)" as just "Program Files" and will not 'see' "Program Files" (the real one) at all.

I'm not going to delete Program Files... If anyone has a different solution, please let me know - otherwise, I'm off to Monad Land - wish me luck... Thanks for all your guidance and help... On 2/6/2011 6:39 AM, Chaddaï Fouché wrote:
On Sat, Feb 5, 2011 at 10:33 PM, Tim Baumgartner
wrote: Hi Patrick,
2011/2/5 Patrick Lynch
I did the dir c:\ and it shows both Program Files and Program Files (86) As I expected. Please have a look inside them. The one ending (x86) is definitely necessary to be there but I can imagine that the other one's existence is a simple accident... If so, then you should remove it. Perhaps you have installed a few apps into it. I suggest you consider to reinstall them to the other folder in order to avoid even more confusion later on.
Maybe you shouldn't be so hasty, from what I can see on my Windows 7, both Program Files and its (x86) variant are real folders, one is for 64-bits applications while the other contains all the applications that are still in 32 bits, I don't think it's a good idea to just delete one...

Why do you even have a Program Files (x86) folder? Is this a Windows XP thing?
In any case did you install mingw? You should install it fresh form
the link on the wiki and not depend on the one provided with Haskell
Platform. This should provide the needed version of pkg-config.
-deech
On Sat, Feb 5, 2011 at 1:09 PM, Patrick Lynch
Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: setup.exe: pkg-config version >=0.9.0 is required but it could not be found. Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ... &nbs p; &nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version >=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &nbs p; 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 (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o )   ; [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )   ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...   ; Configuring glib-0.12.0...setup.exe: 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
gio-0.12.0 depends on glib-0.12.0 which failed to install. &nbs p;   ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 & nbsp; & nbsp; 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.
On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

Program Files (x86) is a Windows thing...it is used to separate 32 bit and 64 bit apps... In regard to installing mingw, I checked the site and haven't a clue on how to download it... I'm not a unix guy and i haven't a clue as to what a 'tarball' is... I'd appreciate any help... Ciao On 2/5/2011 3:09 PM, aditya siram wrote:
Why do you even have a Program Files (x86) folder? Is this a Windows XP thing?
In any case did you install mingw? You should install it fresh form the link on the wiki and not depend on the one provided with Haskell Platform. This should provide the needed version of pkg-config.
-deech
On Sat, Feb 5, 2011 at 1:09 PM, Patrick Lynch
wrote: Good afternoon, I uninstalled both Gtk+s... I ran the command again and the previous errors no longer appear - thank you. However, I still get one error, see following: it is: setup.exe: pkg-config version>=0.9.0 is required but it could not be found. Please see following. Good weekend
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-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 building (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Gtk2HsSetup.o ) [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe ... &nbs p;&nbs p; Configuring cairo-0.12.0...setup.exe: pkg-config version>=0.9.0 is required but it could not be found.
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. &nbs p; 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 (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Gtk2HsSetup.o )  ; [2 of 2] Compiling Main (C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\Main.o )  ; Linking C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe ...   ; Configuring glib-0.12.0...setup.exe: 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
gio-0.12.0 depends on glib-0.12.0 which failed to install.&nbs p;   ; glib-0.12.0 failed during the configure step. The exception was: ExitFailure 1 & nbsp;& nbsp; 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.
On 2/5/2011 1:01 PM, aditya siram wrote:
The paths look ok from here. Please uninstall both your Gtk+ installations and reinstall just one. Then make sure your INCLUDE and PKG_CONFIG_PATH refer to it. It's possible you're referring to the 'bin' of one while trying to use the 'include' and 'pkgconfig' of the other.
-deech
On Sat, Feb 5, 2011 at 11:56 AM, Patrick Lynch
wrote: Good afternoon,
In the course of doing this, I probably did the installation twice, meo culpa.
As fro the environment variables, they are [note: each directory is on a separate line]: echo %PATH% C:\Program Files (x86)\Haskell\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin; C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin; C:\Windows\system32; C:\Windows; C:\Windows\System32\Wbem; C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\; C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\; C:\Users\User\AppData\Roaming\cabal\bin; C:\Program Files\Gtk+\bin;C:\Users\User; C:\Program Files (x86)\Gtk+\bin; c:\Program Files (x86)\Gtk+\share\gettext echo %INCLUDE% C:\Program Files\Gtk+\include\libglade-2.0; c:\users\user\downloads\libxml2-2.2.7-1_win32\include; C:\Program Files\Gtk+\include; C:\Program Files (x86)\Gtk+\include echo %PKG_CONFIG% [presumably this should be PKG_CONFIG_PATH, since PKG_CONFIG is not used]: echo %PKG_CONFIG_PATH% C:\Program Files\Gtk+\lib\pkgconfig; C:\Program Files\Gtk+\lib\pkgconfig\include; c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig echo %LIB% [added just for sake of completeness]: C:\Program Files\Gtk+\lib; C:\Program Files (x86)\Gtk+\lib
On 2/5/2011 12:31 PM, aditya siram wrote:
Why do you have Gtk+ in two folders? Did you somehow install it twice? Also what's in the following environment variable: PATH, INCLUDE, PKG_CONFIG
-deech
On Sat, Feb 5, 2011 at 11:15 AM, Patrick Lynch
wrote: Good afternoon:
Step 1 ['cabal install gtk2hs-buildtools'] ran successfully.
This is what 'echo %lib%' gives: C:\Users\User>echo %lib% C:\Program Files\Gtk+\lib;C:\Program Files (x86)\Gtk+\lib
This is what pkg-config --modversion gtk+-2.0 gives: C:\Users\User>pkg-config --modversion gtk+-2.0 2.16.2
Thanks again
On 2/5/2011 11:59 AM, Tim Baumgartner wrote:
Hi Patrick,
2011/2/5 Patrick Lynch
This is what I did so far: 1. I followed your wiki 2. I opened Command window and entered the command: cabal install gtk 3. It returned the error messages: * Missing C libraries: z, cairo * Missing C libraries: gobject-2.0, glib-2.0, intl 4. I then ran the command: cabal install gtk --extra-include-dirs="c:/Program Files/Gtk+/include" --extra-lib-dirs="c:/Program Files/Gtk+/include" This returned the same error messages as indicated in step 3 above.
Step 1 should already include step 2, so I better ask if gtk2hs-buildtools installed successfully?
If the compiler misses some libraries, it will never help to add more include folders, because they only contain header files, not lib files. For missing include files, you get a different error message. For libraries, you have to set up the LIB environment variable properly. It must include the lib folder with Gtk+. Could you show us the result of
echo %LIB%
at the prompt? The ouput of
pkg-config --modversion gtk+-2.0
might indicate an error as well. By the way, the environment variables at the command prompt should the sum of those made globally and those made for the current user.
Good luck Tim
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

2011/2/5 Patrick Lynch
Program Files (x86) is a Windows thing...it is used to separate 32 bit and 64 bit apps...
In regard to installing mingw, I checked the site and haven't a clue on how to download it... I'm not a unix guy and i haven't a clue as to what a 'tarball' is... I'd appreciate any help...
mingw only runs on Windows, because it's the minimalistic GNU for *Windows* A GUI installer is available here: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mi... Regards Tim

Thank you. I downloaded GIMP... I tried gtk2hs again but no luck... I'm going to see if I can 'crack' Monads...and leave gtk2hs alone for awhile...it's too tough for me... I'll see if I can get C or C# up and running under TCL and then do FFI to Haskell... Thanks for all of your help On 2/5/2011 4:19 PM, Tim Baumgartner wrote:
2011/2/5 Patrick Lynch
mailto:kmandpjlynch@verizon.net> Program Files (x86) is a Windows thing...it is used to separate 32 bit and 64 bit apps...
In regard to installing mingw, I checked the site and haven't a clue on how to download it... I'm not a unix guy and i haven't a clue as to what a 'tarball' is... I'd appreciate any help...
mingw only runs on Windows, because it's the minimalistic GNU for *Windows* A GUI installer is available here: http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/mi...
Regards Tim

Hi Patrick, I have only used Windows 7 for some minutes but I think "C:\Program Files" is only symbolic there, displayed in the UI and translated to different languages. But on disk I think it's always "C:\Program Files (x86)", regardless of the language. Therefore it's possible to create anoter folder "C:\Program Files". Then both folders look same in the UI but are different on disk. I think it's a bad idea to do this. If you have done so (or an application did without being asked), perhaps removing the additional folder is an option that helps to prevent further confusion... Regards Tim

...it is and it does - i was advised [aditya siram] to delete both gtk+ versions and start again - which is what i did and now am only seeing one error...see my other email for details... ...getting closer... Good weekend and enjoy the Super Bowl...Go Jets, oh I forgot they didn't make it, bummer On 2/5/2011 1:50 PM, Tim Baumgartner wrote:
Hi Patrick,
I have only used Windows 7 for some minutes but I think "C:\Program Files" is only symbolic there, displayed in the UI and translated to different languages. But on disk I think it's always "C:\Program Files (x86)", regardless of the language. Therefore it's possible to create anoter folder "C:\Program Files". Then both folders look same in the UI but are different on disk. I think it's a bad idea to do this. If you have done so (or an application did without being asked), perhaps removing the additional folder is an option that helps to prevent further confusion...
Regards Tim

...i'm running into the same problem...
...i ran the command: cabal install gtk...
...it can't find the folders: Z, CAIRO, GOBJECT-2.0, GLIB-2.0, INTL.
...however, they are all, with the exception of Z and possibly GOBJECT-2.0 - there is no folder for this but there is a library file for it, in Program Files and surprisingly also in Program Files (X86)...
...i'm a bit confused about my %PATH% setting, it is different in the Advanced system settings from what is displayed by echo %PATH% in the Command window - see following...
C:\Users\User>cabal install gtk
Resolving dependencies...
C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Se
tup.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 ( C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.02
164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main ( C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\ca
iro-0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cairo-0.12.02164\cairo-0.12.0\dist\setup\setup.exe ...
Configuring cairo-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: z, cairo
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setu
p.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 ( C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.02164
\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main ( C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-
0.12.0\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\glib-0.12.02164\glib-0.12.0\dist\setup\setup.exe ...
Configuring glib-0.12.0...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: gobject-2.0, glib-2.0, intl
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
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.
C:\Users\User>
---------------------------------------------------------------------------
--My %PATH% at the command window
C:\Program Files (x86)\Haskell\bin;
C:\Program Files (x86)\Haskell Platform\2010.2.0.0\lib\extralibs\bin;
C:\Program Files (x86)\Haskell Platform\2010.2.0.0\bin;
C:\Windows\system32;
C:\Windows;C:\Windows\System32\Wbem;
C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;
C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;
C:\Users\User\AppData\Roaming\cabal\bin;C:\Program Files\Gtk+\bin;
C:\Users\User;C:\Program Files (x86)\Gtk+\bin;
c:\Program Files (x86)\Gtk+\share\gettext
--My %PATH% at the Advanced system settings
C:\Users\User\AppData\Roaming\cabal\bin;
C:\Program Files\Gtk+\bin;
C:\Users\User;
C:\Program Files (x86)\Gtk+\bin;
c:\Program Files (x86)\Gtk+\share\gettext
----------------------------------------------------------------------------
.To the PKG_CONFIG_PATH environment variable add the 'pkgconfig' directory. The default path should be "
C:\Program Files\Gtk+\lib\pkgconfig
.To the INCLUDE environment variable add the 'libglade-2.0' directory.The default path should be "
C:\Program Files\Gtk+\include\libglade-2.0
C:\Program Files\Gtk+\lib\pkgconfig;
C:\Program Files\Gtk+\lib\pkgconfig\include;
c:\users\user\downloads\libxml2-2.2.7-1_win32\lib\pkgconfig
...i'll have to try what you did to see if i can get it installed...
Good weekend
----- Original Message -----
From: Tim Baumgartner
To: beginners@haskell.org
Cc: Patrick Lynch
Sent: Friday, February 04, 2011 2:13 PM
Subject: Re: [Haskell-beginners] gtk2hs [GIMP ToolKit]
Hi Patrick,
I used the same link to install gtk2hs on Windows XP with Haskell Platform 2010.2.0 about 3 days ago. I'm a beginner as well. I had a number of problems. In the end, I managed to install version 0.11 with some extra-work:
- I added HaskellPlatform/2010.2.0.0/mingw/bin to the PATH (because there is my only current gcc.exe)
- ugly: I copied Gtk+/include/glib-2.0 to a temp folder and copied this again *into* Gtk+/include/glib-2.0 (the output of pkg-config looked alright...)
- I repeated the previous steps for other include folders as well
Note: in order to install a specific version of a package you can e.g.
cabal install gtk2hs-buildtools-0.11.2
Installation of 0.12. failed with the following error:
[ 5 of 24] Compiling System.GIO.Volumes.VolumeMonitor ( dist\build\System\GIO\Volumes\VolumeMonitor.hs, dist\build\System\GIO\Volumes\VolumeMonitor.o )
System\GIO\Volumes\VolumeMonitor.chs:56:4:
Not in scope: `vmDriveStopButton'
Regards,
Tim
2011/2/3 Patrick Lynch
participants (6)
-
aditya siram
-
Chaddaï Fouché
-
Daniel Pratt
-
Jeff Wheeler
-
Patrick Lynch
-
Tim Baumgartner