<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 12:53 AM, Berlin Brown <span dir="ltr">&lt;<a href="mailto:berlin.brown@gmail.com">berlin.brown@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br></div><div>Here is the include, I will try installing in different steps. </div><div><br></div><div>C:\Documents and Settings\bbrown&gt;echo %INCLUDE%</div><div>C:\Program Files\libxml2\libxml2-dev_2.7.7-1_win32\include</div>
<div><div></div><div class="h5">
<br><div class="gmail_quote">On Tue, Feb 22, 2011 at 12:22 AM, aditya siram <span dir="ltr">&lt;<a href="mailto:aditya.siram@gmail.com" target="_blank">aditya.siram@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

What does &#39;echo %INCLUDE%&#39; and &#39;echo %PATH%&#39; output? You might want to<br>
try installing the dependencies separately to see where its going<br>
wrong. For instance &#39;cabal install glib&#39; and &#39;cabal install cairo&#39;<br>
etc. Let me know if I can help you further.<br>
<br>
-deech<br>
<div><div></div><div><br>
On Mon, Feb 21, 2011 at 11:01 PM, Berlin Brown &lt;<a href="mailto:berlin.brown@gmail.com" target="_blank">berlin.brown@gmail.com</a>&gt; wrote:<br>
&gt; I am following the steps outlined here but I am still getting errors related<br>
&gt; to my install of gtk<br>
&gt;<br>
&gt; Here is one of the first errors:<br>
&gt;<br>
&gt; tup\setup.exe ...<br>
&gt; Configuring cairo-0.12.0...<br>
&gt; setup.exe: Missing dependencies on foreign libraries:<br>
&gt; * Missing C libraries: z, cairo<br>
&gt; This problem can usually be solved by installing the system packages that<br>
&gt; provide these libraries (you may need the &quot;-dev&quot; versions). If the libraries<br>
&gt; are already installed but in a non-standard location then you can use the<br>
&gt; flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.<br>
&gt;<br>
&gt; <a href="http://www.haskell.org/haskellwiki/Gtk2Hs" target="_blank">http://www.haskell.org/haskellwiki/Gtk2Hs</a><br>
&gt;<br>
&gt;<br>
&gt; Here is the output:<br>
&gt; C:\Documents and Settings\Bot User&gt;echo %LIB%<br>
&gt; C:\Program Files\Gtk+\lib<br>
&gt;<br>
&gt; C:\Documents and Settings\Bot User&gt;echo %PKG_CONFIG_PATH%<br>
&gt; C:\Program Files\Gtk+\lib\pkgconfig;C:\<br>
&gt; Program Files\Gtk+\include\libglade-2.0;C:\Program<br>
&gt; Files\libxml2\libxml2-dev_2.7.7-1_win32\lib\pkgconfig<br>
&gt;<br>
&gt; I got the install of GTK and everything worked:<br>
&gt; <a href="http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe" target="_blank">http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe</a><br>
&gt;<br>
&gt;<br>
&gt; Microsoft Windows XP [Version 5.1.2600]<br>
&gt;<br>
&gt; C:\Documents and Settings\Bot User&gt;cabal update<br>
&gt; Downloading the latest package list from <a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a><br>
&gt;<br>
&gt; Version:<br>
&gt; C:\Documents and Settings\Bot User&gt;ghc --version<br>
&gt; The Glorious Glasgow Haskell Compilation System, version 6.12.3<br>
&gt;<br>
&gt;<br>
&gt; C:\Documents and Settings\Bot User&gt;cabal install gtk2hs-buildtools<br>
&gt; Resolving dependencies...<br>
&gt; Configuring gtk2hs-buildtools-0.12.0...<br>
&gt; Preprocessing executables for gtk2hs-buildtools-0.12.0...<br>
&gt; ...<br>
&gt; hs\gtk2hsC2hs-tmp\GenBind.o )<br>
&gt; [41 of 41] Compiling Main             ( c2hs\toplevel\Main.hs,<br>
&gt; dist\build\gtk2hs<br>
&gt; C2hs\gtk2hsC2hs-tmp\Main.o )<br>
&gt; Linking dist\build\gtk2hsC2hs\gtk2hsC2hs.exe ...<br>
&gt; Installing executable(s) in C:\Documents and Settings\Bot User\Application<br>
&gt; Data\cabal\bin<br>
&gt;<br>
&gt; Here is where it fails:<br>
&gt;<br>
&gt; C:\Documents and Settings\Bot User&gt;cabal install gtk<br>
&gt; Resolving dependencies...<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\Gtk2HsSetup.hs:<br>
&gt; 25: warning: #warning Setup.hs is guessing the version of Cabal. If<br>
&gt; compilation<br>
&gt; of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when<br>
&gt; build<br>
&gt; ing (prefixed by --ghc-option= when using the &#39;cabal&#39; command)<br>
&gt; [1 of 2] Compiling Gtk2HsSetup      (<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0<br>
&gt; .12.03164\cairo-0.12.0\Gtk2HsSetup.hs,<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-<br>
&gt; 0.12.03164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )<br>
&gt; [2 of 2] Compiling Main             (<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0<br>
&gt; .12.03164\cairo-0.12.0\Setup.hs,<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.0<br>
&gt; 3164\cairo-0.12.0\dist\setup\Main.o )<br>
&gt; Linking<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\dist\se<br>
&gt; tup\setup.exe ...<br>
&gt; Configuring cairo-0.12.0...<br>
&gt; setup.exe: Missing dependencies on foreign libraries:<br>
&gt; * Missing C libraries: z, cairo<br>
&gt; This problem can usually be solved by installing the system packages that<br>
&gt; provide these libraries (you may need the &quot;-dev&quot; versions). If the libraries<br>
&gt; are already installed but in a non-standard location then you can use the<br>
&gt; flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\Gtk2HsSetup.hs:25<br>
&gt; : warning: #warning Setup.hs is guessing the version of Cabal. If<br>
&gt; compilation of<br>
&gt;  Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when<br>
&gt; buildin<br>
&gt; g (prefixed by --ghc-option= when using the &#39;cabal&#39; command)<br>
&gt; [1 of 2] Compiling Gtk2HsSetup      (<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.<br>
&gt; 12.03164\glib-0.12.0\Gtk2HsSetup.hs,<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.1<br>
&gt; 2.03164\glib-0.12.0\dist\setup\Gtk2HsSetup.o )<br>
&gt; [2 of 2] Compiling Main             (<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.<br>
&gt; 12.03164\glib-0.12.0\Setup.hs,<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.0316<br>
&gt; 4\glib-0.12.0\dist\setup\Main.o )<br>
&gt; Linking<br>
&gt; C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\dist\setu<br>
&gt; p\setup.exe ...<br>
&gt; Configuring glib-0.12.0...<br>
&gt; setup.exe: Missing dependencies on foreign libraries:<br>
&gt; * Missing C libraries: gobject-2.0, glib-2.0, intl<br>
&gt; This problem can usually be solved by installing the system packages that<br>
&gt; provide these libraries (you may need the &quot;-dev&quot; versions). If the libraries<br>
&gt; are already installed but in a non-standard location then you can use the<br>
&gt; flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.<br>
&gt; cabal: Error: some packages failed to install:<br>
&gt; cairo-0.12.0 failed during the configure step. The exception was:<br>
&gt; ExitFailure 1<br>
&gt; gio-0.12.0 depends on glib-0.12.0 which failed to install.<br>
&gt; glib-0.12.0 failed during the configure step. The exception was:<br>
&gt; ExitFailure 1<br>
&gt; gtk-0.12.0 depends on glib-0.12.0 which failed to install.<br>
&gt; pango-0.12.0 depends on glib-0.12.0 which failed to install.<br>
&gt;<br>
&gt; C:\Documents and Settings\Bot User&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Berlin Brown (berlin dot brown at <a href="http://gmail.com" target="_blank">gmail.com</a>)<br>
&gt; <a href="http://botnode.com" target="_blank">http://botnode.com</a><br>
&gt; <a href="http://berlinbrowndev.blogspot.com/" target="_blank">http://berlinbrowndev.blogspot.com/</a><br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Beginners mailing list<br>
&gt; <a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><div><div></div><div class="h5">Berlin Brown (berlin dot brown at <a href="http://gmail.com" target="_blank">gmail.com</a>)<br><a href="http://botnode.com" target="_blank">http://botnode.com</a><br>
<a href="http://berlinbrowndev.blogspot.com/" target="_blank">http://berlinbrowndev.blogspot.com/</a><br>

</div></div></blockquote></div><div><br></div>OK, I tried that and get the following output.<div><br></div><div><div>glib-0.12.0 failed during the configure step. The exception was:</div><div>ExitFailure 1</div><div><br>
</div><div>Bot Berlin@student-paris ~</div><div>$ cabal install glib -v</div><div>C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --numeric-version</div><div>looking for package tool: ghc-pkg near compiler in C:\Program Files\Haskell</div>
<div>Platform\2010.2.0.0\bin</div><div>found package tool in C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\bin\ghc-pkg.exe</div><div>C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe --version</div><div>
C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --supported-languages</div><div>Reading installed packages...</div><div>C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe dump --global</div><div>C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe dump --user</div>
<div>C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --print-libdir</div><div>Reading available packages...</div><div>Resolving dependencies...</div><div>selecting glib-0.12.0 (hackage) and discarding glib-0.11.0, 0.11.1 and 0.11.2</div>
<div>selecting haskell98-1.0.1.1 (installed or hackage) and discarding</div><div>haskell98-1.0, 1.0.1.0 and 1.1.0.0</div><div>selecting process-1.0.1.3 (installed or hackage) and discarding</div><div>directory-1.1.0.0, filepath-1.0, process-1.0.0.0, 1.0.1.1, 1.0.1.2 and 1.0.1.4</div>
<div>selecting random-1.0.0.2 (installed or hackage) and discarding random-1.0.0.0,</div><div>1.0.0.1 and 1.0.0.3</div><div>selecting time-1.1.4 (installed or hackage) and discarding time-1.0, 1.1.2.0,</div><div>1.1.2.1, 1.1.2.2, 1.1.2.3, 1.1.2.4, 1.1.3, 1.2, 1.2.0.1, 1.2.0.2, 1.2.0.3 and</div>
<div>1.2.0.4</div><div>selecting directory-1.0.1.1 (installed or hackage) and discarding</div><div>directory-1.0.0.0, 1.0.0.3, 1.0.1.0, 1.0.1.2 and filepath-1.2.0.0</div><div>selecting old-time-1.0.0.5 (installed or hackage) and discarding</div>
<div>old-time-1.0.0.0, 1.0.0.2, 1.0.0.3, 1.0.0.4 and 1.0.0.6</div><div>selecting old-locale-1.0.0.2 (installed or hackage) and discarding</div><div>old-locale-1.0.0.0 and 1.0.0.1</div><div>selecting filepath-1.1.0.4 (installed or hackage) and discarding</div>
<div>filepath-1.1.0.0, 1.1.0.1, 1.1.0.2 and 1.1.0.3</div><div>selecting containers-0.3.0.0 (installed or hackage) and discarding</div><div>containers-0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1 and 0.4.0.0</div><div>selecting Win32-2.2.0.2 (installed or hackage) and discarding Win32-2.1,</div>
<div>2.1.0.0, 2.2.0.0 and 2.2.0.1</div><div>selecting bytestring-0.9.1.7 (installed or hackage) and discarding</div><div>bytestring-0.9, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.1.0, 0.9.1.1, 0.9.1.2,</div><div>0.9.1.3, 0.9.1.4, 0.9.1.5, 0.9.1.6, 0.9.1.8 and 0.9.1.9</div>
<div>selecting ghc-prim-0.2.0.0 (installed)</div><div>selecting ffi-1.0 (installed)</div><div>selecting rts-1.0 (installed)</div><div>selecting array-0.3.0.1 (installed or hackage) and discarding array-0.1.0.0,</div><div>
0.2.0.0, 0.3.0.0 and 0.3.0.2</div><div>selecting base-3.0.3.2 (installed) and 4.2.0.2 (installed) and discarding</div><div>syb-0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2, 0.2.1, 0.2.2 and 0.3</div><div>selecting integer-gmp-0.2.0.1 (installed)</div>
<div>selecting syb-0.1.0.2 (installed)</div><div>In order, the following would be installed:</div><div>glib-0.12.0 (new package)</div><div>glib-0.12.0 has already been downloaded.</div><div>Extracting C:\Documents and Settings\Bot Berlin\Application</div>
<div>Data\cabal\packages\<a href="http://hackage.haskell.org">hackage.haskell.org</a>\glib\0.12.0\glib-0.12.0.tar.gz to</div><div>C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116...</div><div>Creating</div><div>C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup (and</div>
<div>its parents)</div><div>C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --make C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\</div><div>lib-0.12.07116\glib-0.12.0\Setup.hs -o C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12</div>
<div>0\dist\setup\setup.exe -odir C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\se</div><div>up -hidir C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup -i -iC:\DOCUME~</div><div>
\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0 -package Cabal-1.8.0.6</div><div>C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warning</div><div>Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MIN</div>
<div>R=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the &#39;cabal&#39; command</div><div><br></div><div>[1 of 2] Compiling Gtk2HsSetup      ( C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.</div>
<div>\Gtk2HsSetup.hs, C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\Gtk2HsSe</div><div>up.o )</div><div>[2 of 2] Compiling Main             ( C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.</div>
<div>\Setup.hs, C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\Main.o )</div><div>Linking C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\setup.exe ...</div><div>C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\setup.exe</div>
<div>configure --verbose=2 --ghc --prefix=C:\Documents and Settings\Bot</div><div>Berlin\Application Data\cabal --user --flags=closure_signals --constraint=base</div><div>==4.2.0.2 --constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1</div>
<div>Configuring glib-0.12.0...</div><div>Flags chosen: closure_signals=True</div><div>Dependency base ==<a href="http://4.2.0.2">4.2.0.2</a>: using base-4.2.0.2</div><div>Dependency containers ==<a href="http://0.3.0.0">0.3.0.0</a>: using containers-0.3.0.0</div>
<div>Dependency haskell98 ==<a href="http://1.0.1.1">1.0.1.1</a>: using haskell98-1.0.1.1</div><div>Dependency glib-2.0 -any: using version 2.20.3</div><div>Dependency gobject-2.0 -any: using version 2.20.3</div><div>Using Cabal-1.8.0.6 compiled by ghc-6.12</div>
<div>Using compiler: ghc-6.12.3</div><div>Using install prefix: C:\Documents and Settings\Bot Berlin\Application</div><div>Data\cabal</div><div>Binaries installed in: C:\Documents and Settings\Bot Berlin\Application</div>
<div>Data\cabal\bin</div><div>Libraries installed in: C:\Documents and Settings\Bot Berlin\Application</div><div>Data\cabal\glib-0.12.0\ghc-6.12.3</div><div>Private binaries installed in: C:\Documents and Settings\Bot</div>
<div>Berlin\Application Data\cabal\glib-0.12.0</div><div>Data files installed in: C:\Documents and Settings\Bot Berlin\Application</div><div>Data\cabal\glib-0.12.0</div><div>Documentation installed in: C:\Documents and Settings\Bot Berlin\Application</div>
<div>Data\cabal\doc\glib-0.12.0</div><div>Using alex version 2.3.3 found on system at: C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\lib\extralibs\bin\alex.exe</div><div>Using ar found on system at: C:\Program Files\Haskell</div>
<div>Platform\2010.2.0.0\mingw\bin\ar.exe</div><div>No c2hs found</div><div>No cpphs found</div><div>No ffihugs found</div><div>Using gcc version 3.4.5 found on system at: C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\mingw\bin\gcc.exe</div>
<div>Using ghc version 6.12.3 found on system at: C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\bin\ghc.exe</div><div>Using ghc-pkg version 6.12.3 found on system at: C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\bin\ghc-pkg.exe</div>
<div>No greencard found</div><div>Using gtk2hsC2hs found on system at: C:\Documents and Settings\Bot</div><div>Berlin\Application Data\cabal\bin\gtk2hsC2hs.exe</div><div>Using gtk2hsHookGenerator found on system at: C:\Documents and Settings\Bot</div>
<div>Berlin\Application Data\cabal\bin\gtk2hsHookGenerator.exe</div><div>Using gtk2hsTypeGen found on system at: C:\Documents and Settings\Bot</div><div>Berlin\Application Data\cabal\bin\gtk2hsTypeGen.exe</div><div>Using haddock version 2.6.1 found on system at: C:\Program Files\Haskell</div>
<div>Platform\2010.2.0.0\bin\haddock.exe</div><div>Using happy version 1.18.5 found on system at: C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\lib\extralibs\bin\happy.exe</div><div>No hmake found</div><div>Using hsc2hs version 0.67 found on system at: C:\Program Files\Haskell</div>
<div>Platform\2010.2.0.0\bin\hsc2hs.exe</div><div>No hscolour found</div><div>No hugs found</div><div>No jhc found</div><div>Using ld found on system at: C:\Program Files\Haskell</div><div>Platform\2010.2.0.0\mingw\bin\ld.exe</div>
<div>No lhc found</div><div>No lhc-pkg found</div><div>No nhc98 found</div><div>Using pkg-config version 0.23 found on system at: C:\Program</div><div>Files\Gtk+\bin\pkg-config.exe</div><div>Using ranlib found on system at: C:\projects\tools\cygwin\bin\ranlib.exe</div>
<div>Using strip found on system at: C:\projects\tools\cygwin\bin\strip.exe</div><div>Using tar found on system at: C:\projects\tools\cygwin\bin\tar.exe</div><div>C:\Program Files\Gtk+\bin\pkg-config.exe --modversion glib-2.0</div>
<div>C:\Program Files\Gtk+\bin\pkg-config.exe --modversion gobject-2.0</div><div>setup.exe: Missing dependencies on foreign libraries:</div><div>* Missing C libraries: gobject-2.0, glib-2.0, intl</div><div>This problem can usually be solved by installing the system packages that</div>
<div>provide these libraries (you may need the &quot;-dev&quot; versions). If the libraries</div><div>are already installed but in a non-standard location then you can use the</div><div>flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.</div>
<div>cabal.exe: Error: some packages failed to install:</div><div>glib-0.12.0 failed during the configure step. The exception was:</div><div>ExitFailure 1</div><br clear="all"><br>-- <br>Berlin Brown (berlin dot brown at <a href="http://gmail.com">gmail.com</a>)<br>
<a href="http://botnode.com">http://botnode.com</a><br><a href="http://berlinbrowndev.blogspot.com/">http://berlinbrowndev.blogspot.com/</a><br>
</div>