<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
UNCLE! I give up...<br>
<br>
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...<br>
I looked at MINQ and ran into a Polish Not Found Page and was
completely dumbfounded by the instructions there...<br>
<br>
I've got my database stuff working and I must go thru Monads, to see
if I can understand them...<br>
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...<br>
I'll also take a look at F# and see if it works with Visual
Studio...<br>
<br>
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...<br>
<br>
Ciao<br>
<br>
<br>
On 2/5/2011 4:07 PM, Tim Baumgartner wrote:
<blockquote
cite="mid:AANLkTimyO64FEgQcuorXtxGHxdo-Cvt7BKOS7nZwaA=Q@mail.gmail.com"
type="cite">Hi Patrick,<br>
<br>
<div class="gmail_quote">2011/2/5 Patrick Lynch <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:kmandpjlynch@verizon.net">kmandpjlynch@verizon.net</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> I reinstalled Gtk* but
switched the folder from Program Files (x86) to Program
Files...<br>
</div>
</blockquote>
<div><br>
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.<br>
Type<br>
<br>
<span style="font-family: courier new,monospace;">dir c:\</span><br>
<br>
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.<br>
<br>
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.<br>
<br>
Regards<br>
Tim<br>
</div>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> <br>
I changed all my environment variables to remove Program
Files (x86)...<br>
<br>
Unfortunately, it once again doesn't see the five original
directories...see following:
<div class="im"><br>
* Missing C libraries: z, cairo<br>
* Missing C libraries: gobject-2.0, glib-2.0, intl<br>
<br>
</div>
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...<br>
<br>
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)]<br>
<br>
Good weekend
<div class="im"><br>
<br>
<br>
On 2/5/2011 2:38 PM, Patrick Lynch wrote: </div>
<blockquote type="cite">
<div class="im"> I hate to tell you this, but gtk* is
being installed in Program Files (x86) and not in
Program Files...<br>
I'll try it again...<br>
<br>
<br>
On 2/5/2011 2:09 PM, Patrick Lynch wrote: </div>
<blockquote type="cite">
<div class="im"> Good afternoon,<br>
I uninstalled both Gtk+s...<br>
I ran the command again and the previous errors no
longer appear - thank you.<br>
However, I still get one error, see following: it
is: <u><b><big><big><font size="-1"><big><big><span
style="font-size: 8pt; line-height:
115%;"><span style="color: rgb(0, 112,
192);">setup.exe: pkg-config version
>=0.9.0 is required but it could
not be found</span>.</span></big></big></font></big></big></b></u><br>
Please see following.<br>
Good weekend<br>
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%;">C:\Users\User>cabal install
gtk</span></p>
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%;">Resolving dependencies...</span></p>
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%;">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. <span>
</span><br>
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)</span></p>
</div>
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%;">[1 of 2] Compiling Gtk2HsSetup<span>
</span><span></span><span> </span>(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<span> </span><span></span><span></span>(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
)<span>
</span>Linking
C:\Users\User\AppData\Local\Temp\cairo-0.12.03104\cairo-0.12.0\dist\setup\setup.exe
...<span> </span><span>
&a
mp
;nbs
p; &n
bsp;
&nb
sp;&nbs
p;
</span>Configuring cairo-0.12.0...<span></span><span></span><span
style="color: rgb(0, 112, 192);">setup.exe:
pkg-config version >=0.9.0 is required but it
could not be found</span>.</span></p>
<div class="im">
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%;">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. <span>
&a
mp;nbs
p;
</span>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)</span></p>
</div>
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%;">[1 of 2] Compiling Gtk2HsSetup<span>
</span><span></span><span> </span>(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
) &a
mp;nb
sp;
;
;
[2 of 2] Compiling Main<span> </span><span></span><span>
</span>(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
)<span> &a
mp;
amp;nb
sp;
;
</span>Linking
C:\Users\User\AppData\Local\Temp\glib-0.12.03104\glib-0.12.0\dist\setup\setup.exe
...<span>
</span><span> &a
mp;
amp;nb
sp;
;
</span>Configuring glib-0.12.0...<span></span><span></span><span
style="color: rgb(0, 112, 192);">setup.exe:
pkg-config version >=0.9.0 is required but it
could not be found.</span></span></p>
<p class="MsoNormal"><span style="font-size: 8pt;
line-height: 115%; color: red;">cabal: Error: some
packages failed to install: cairo-0.12.0 failed
during the configure step. The exception was:
ExitFailure 1<span>
&nb
sp;
;
&nbs
p
;
</span>gio-0.12.0 depends on glib-0.12.0 which
failed to install.<span> &nb
sp;
&a
mp;nbs
p;
</span><span> &a
mp;
amp;nb
sp;
;
</span>glib-0.12.0 failed during the configure
step. The exception was: ExitFailure <span>1
&
nbsp;&nb
sp;
;&
nbsp; &
nbsp; &n
bsp;
&
nbsp;
</span>gtk-0.12.0 depends on glib-0.12.0 which
failed to install</span><span style="font-size: 8pt;
line-height: 115%;">.<span>
</span><span> &a
mp;
nbsp;
;
&nbs
p;
;&nbs
p;
</span><span style="color: red;">pango-0.12.0
depends on glib-0.12.0 which failed to install.</span></span></p>
<div>
<div class="h5"> On 2/5/2011 1:01 PM, aditya siram
wrote:
<blockquote type="cite">
<pre>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 <a moz-do-not-send="true" href="mailto:kmandpjlynch@verizon.net" target="_blank"><kmandpjlynch@verizon.net></a> wrote:
</pre>
<blockquote type="cite">
<pre>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 <a moz-do-not-send="true" href="mailto:kmandpjlynch@verizon.net" target="_blank"><kmandpjlynch@verizon.net></a>
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 <a moz-do-not-send="true" href="mailto:kmandpjlynch@verizon.net" target="_blank"><kmandpjlynch@verizon.net></a>
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
<a moz-do-not-send="true" href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a moz-do-not-send="true" href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
</blockquote>
<br>
</div>
</div>
</blockquote>
<div>
<div class="h5"> <br>
<pre><fieldset></fieldset>
_______________________________________________
Beginners mailing list
<a moz-do-not-send="true" href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a>
<a moz-do-not-send="true" href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a>
</pre>
</div>
</div>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a moz-do-not-send="true" href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a moz-do-not-send="true"
href="http://www.haskell.org/mailman/listinfo/beginners"
target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>