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).
Ryan On Fri, Feb 25, 2011 at 4:20 PM, Daniel Díaz <[email protected]> wrote: > Thanks for the responses, but my error remains. > > I wrote two scripts, following both different instructions. > > Script 1: > > @echo off > title GTK Haskell Setup > echo * Add GTK bin folder. > set PATH=%PATH%;C:\Documents and Settings\User\Escritorio\GTK\GTKAIO\bin > echo * Add GTK include folder. > set PATH=%PATH%;C:\Documents and > Settings\User\Escritorio\GTK\GTKAIO\include > echo * Add GTK lib folder. > set PATH=%PATH%;C:\Documents and Settings\User\Escritorio\GTK\GTKAIO\lib > echo * Add Cabal bin folder. > set PATH=%PATH%;C:\Documents and Settings\User\Datos de programa\cabal\bin > echo * Add mingw folder. > set PATH=%PATH%;C:\Archivos de programa\Haskell > Platform\2010.2.0.0\mingw\bin > echo * Value of PATH. > echo %PATH% > echo * Install GTK buildtools. > cabal install gtk2hs-buildtools > echo * Install GTK. > cabal install gtk > > Script 2: > > @echo off > title GTK Haskell Setup > echo * Add pkgconfig directory for libxml. > set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:\Documents and > > Settings\User\Escritorio\GTK\libmxl2\libxml2-dev_2.7.7-1_win32\lib\pkgconfig > echo * Add include directory for libxml. > set INCLUDE=%INCLUDE%;C:\Documents and > Settings\User\Escritorio\GTK\libmxl2\libxml2-dev_2.7.7-1_win32\include > echo * Add pkgconfig directory for GTK. > set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%;C:\Documents and > Settings\User\Escritorio\GTK\Gtk+\lib\pkgconfig > echo * Add libglade directory. > set INCLUDE=%INCLUDE%;C:\Documents and > Settings\User\Escritorio\GTK\Gtk+\include\libglade-2.0 > echo * Value of PATH. > echo %PATH% > echo * Value of INCLUDE > echo %INCLUDE% > echo * Value of PKG_CONFIG_PATH > echo %PKG_CONFIG_PATH% > echo * Install GTK buildtools. > cabal install gtk2hs-buildtools > echo * Install GTK. > cabal install gtk > > In the script 1, GTKAIO is the folder where I installed the GTK All In One. > > Apparently, I followed your instructions. Otherwise, what's wrong? > > > > _______________________________________________ > Haskell-Cafe mailing list > [email protected] > http://www.haskell.org/mailman/listinfo/haskell-cafe >
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
