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

I use the command perl -MCPAN -e "install "XML::LibXML'" on windows to download the XML::LibXML library. However, it does not finish because after downloading the necessary files, it calls a Makefile.PL script to build the files it downloaded. The script searches for libxml2, which says it cannot find on my computer. So I went ahead and downloaded the windows binary of libxml2 from http://www.zlatkovic.com/pub/libxml, yet it still says I do not have it - even after adding it to the Path environment. Does anyone know how I can get Perl to recognize the libxml2 I have on my computer? Without it the Makefile.PL does not work and it prevents me from using the XML::LibXML library. Thanks.
  • Comment on Downloading Perl XML::LibXML module/library

Replies are listed 'Best First'.
Re: Downloading Perl XML::LibXML module/library
by hipowls (Curate) on Jan 17, 2008 at 21:22 UTC

    You can see a rather long rant by Alias on this subject and his fix for it.

Re: Downloading Perl XML::LibXML module/library
by randyk (Parson) on Jan 17, 2008 at 22:49 UTC
    You can obtain XML-LibXML as an ActivePerl ppm package; this will require the XML-LibXML-Common ppm package, which will run a post-install script to fetch and install the needed libxml2.dll. Make sure to use a ppm repository that's compatible with your version of ActivePerl.