biswanath_c has asked for the wisdom of the Perl Monks concerning the following question:


Hi,


I am trying to install libxml2 on my Windows machine. I had to go to this step bcos without libxml2, XML::LibXML would not install!

But I am having trouble installing libxml2! i downloaded a zip file but all it has is .h files. What do i do with them?

Would be really great if someone can give me clear stpes on how to install libxml2 on Windows machine


  • Comment on Trouble installing libxml2 on Windows...

Replies are listed 'Best First'.
Re: Trouble installing libxml2 on Windows...
by thunders (Priest) on Oct 14, 2009 at 17:41 UTC

    Did the package you downloaded also include a /lib and /bin, as well as the /include directory? In that case it's probably a binary distribution like this one.

    If you have a c compiler and a make program( you should have both if you are using Strawberry Perl) You can find a source package here. Here's a direct link to libxml2.

    Which version you go with is up to you, but either way, I think on windows the libxml2.dll needs to be installed somewhere in your PATH.

Re: Trouble installing libxml2 on Windows...
by thunders (Priest) on Oct 14, 2009 at 17:52 UTC

    If you are using ActiveState perl instead, you may want to try a pre compiled PPM instead. First use "perl -v" to find out which version you are running.

    For perl 5.8.*:

    C:\> ppm ppm> set repository theoryx http://theoryx5.uwinnipeg.ca/ppms/ ppm> install XML-LibXML

    For perl 5.10.*:

    C:\> ppm ppm> set repository theoryx http://cpan.uwinnipeg.ca/PPMPackages/10xx/ ppm> install XML-LibXML

      This was very helpful and it worked like a charm!! I have been breaking my head on this since yesterday along with a couple of my friends who could not resolve this too!


      Thank you very much! That was VERY helpful!

      Thank you as well! Worked great! :)