In my experience cross platform tools do not work in the presence of spaces in paths.  Because of this when on Windows I have the habit of putting any cross platform libraries or tools in a non-spaced path.  Another option could be to use the short path names when setting the PATH.  GHC and cabal do not appear to have this problem (fortunately).<div>
<br></div><div>Ryan<br><br><div class="gmail_quote">On Fri, Feb 25, 2011 at 4:20 PM, Daniel Díaz <span dir="ltr">&lt;<a href="mailto:danieldiaz@asofilak.es">danieldiaz@asofilak.es</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for the responses, but my error remains.<br>
<br>
I wrote two scripts, following both different instructions.<br>
<br>
Script 1:<br>
<br>
@echo off<br>
title GTK Haskell Setup<br>
echo * Add GTK bin folder.<br>
set PATH=%PATH%;C:\Documents and Settings\User\Escritorio\GTK\GTKAIO\bin<br>
echo * Add GTK include folder.<br>
set PATH=%PATH%;C:\Documents and Settings\User\Escritorio\GTK\GTKAIO\include<br>
echo * Add GTK lib folder.<br>
set PATH=%PATH%;C:\Documents and Settings\User\Escritorio\GTK\GTKAIO\lib<br>
echo * Add Cabal bin folder.<br>
set PATH=%PATH%;C:\Documents and Settings\User\Datos de programa\cabal\bin<br>
echo * Add mingw folder.<br>
set PATH=%PATH%;C:\Archivos de programa\Haskell Platform\2010.2.0.0\mingw\bin<br>
echo * Value of PATH.<br>
echo %PATH%<br>
echo * Install GTK buildtools.<br>
cabal install gtk2hs-buildtools<br>
echo * Install GTK.<br>
cabal install gtk<br>
<br>
Script 2:<br>
<br>
@echo off<br>
title GTK Haskell Setup<br>
echo * Add pkgconfig directory for libxml.<br>
set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:\Documents and<br>
Settings\User\Escritorio\GTK\libmxl2\libxml2-dev_2.7.7-1_win32\lib\pkgconfig<br>
echo * Add include directory for libxml.<br>
set INCLUDE=%INCLUDE%;C:\Documents and<br>
Settings\User\Escritorio\GTK\libmxl2\libxml2-dev_2.7.7-1_win32\include<br>
echo * Add pkgconfig directory for GTK.<br>
set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:\Documents and<br>
Settings\User\Escritorio\GTK\Gtk+\lib\pkgconfig<br>
echo * Add libglade directory.<br>
set INCLUDE=%INCLUDE%;C:\Documents and<br>
Settings\User\Escritorio\GTK\Gtk+\include\libglade-2.0<br>
echo * Value of PATH.<br>
echo %PATH%<br>
echo * Value of INCLUDE<br>
echo %INCLUDE%<br>
echo * Value of PKG_CONFIG_PATH<br>
echo %PKG_CONFIG_PATH%<br>
echo * Install GTK buildtools.<br>
cabal install gtk2hs-buildtools<br>
echo * Install GTK.<br>
cabal install gtk<br>
<br>
In the script 1, GTKAIO is the folder where I installed the GTK All In One.<br>
<br>
Apparently, I followed your instructions. Otherwise, what&#39;s wrong?<br>
<div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>