mercredi, mars 24, 2010

Getting Haskell XML Toolbox to run on windows

First of all, as of today (march 2010), you have to use the version 8.3.2.
you'll need to install tagsoup-0.6: link
cabal install tagsoup-0.6

then you'll need to install curl:
basically it does not work.

you must install cygwin with curl libraries installed.

running cabal install curl under cygwin will give you some errors even when following these advice: Installing curl from hackage on Cygwin
but do the asked copy anyway because, it maybe useful for the final solution.

you can also try to run these commands instead of running cabal link
download curl from
cd xxx/curl-1.3.5
runhaskell Setup.hs configure --extra-include-dirs=c:/SandBox/cygwin/usr/include --extra-lib-dirs=c:/SandBox/cygwin/lib
you'll get an error but continue with the next commands.
runhaskell Setup.hs build
runhaskell Setup.hs install
it will tell can't find curl lib.
I can also remember that I had to hardcode some values in curl.c because it could not find the ones defined in curl.h

What I finally did, and I think that is the only thing you need to do:
get the win32 generic version of libcurl from :
extract the zip
copy all the lib/*.lib in the lib directories from cygwin and haskell_ghc
copy bin/*.* in the cabal_haskell/bin directory where tagsoup.exe is already present.

install hxt
then either run cabal install hxt-8.3.2 or download the hxt package and run
cd xxx/hxt-8.3.2
runhaskell Setup.lhs configure
runhaskell Setup.lhs build
runhaskell Setup.lhs install

Aucun commentaire: